-
Notifications
You must be signed in to change notification settings - Fork 220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add end_key_exclude field to SstMeta and distinguish restoring of RawKv #581
Add end_key_exclude field to SstMeta and distinguish restoring of RawKv #581
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
backup.pb.go
should not need to be changed.
Rest LGTM.
@kennytm It's generated. Should I remove those changes? |
Yeah please revert it. gogoprotoc creates a random name every time it is called, and thus all |
Signed-off-by: MyonKeminta <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…t-meta-exclude-end-key
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…Kv (pingcap#581) * Add end_key_exclusive field to SSTMeta * Add is_raw_kv field to download request * Revert changes of unrelated go files Signed-off-by: MyonKeminta <[email protected]> * build Co-authored-by: MyonKeminta <[email protected]>
…Kv (pingcap#581) * Add end_key_exclusive field to SSTMeta * Add is_raw_kv field to download request * Revert changes of unrelated go files Signed-off-by: MyonKeminta <[email protected]> * build Co-authored-by: MyonKeminta <[email protected]>
…Kv (pingcap#581) * Add end_key_exclusive field to SSTMeta * Add is_raw_kv field to download request * Revert changes of unrelated go files Signed-off-by: MyonKeminta <[email protected]> * build Co-authored-by: MyonKeminta <[email protected]> Signed-off-by: 5kbpers <[email protected]>
* cdc: add regions field for reducing message of resolved ts Signed-off-by: 5kbpers <[email protected]> * pdpb: add replicate_mode (#584) Signed-off-by: disksing <[email protected]> Signed-off-by: 5kbpers <[email protected]> * replicate_mode: change recover-id to state-id (#594) Signed-off-by: disksing <[email protected]> * replicate: add unknown region state (#595) Signed-off-by: disksing <[email protected]> * *: update name and script (#597) Signed-off-by: Jay Lee <[email protected]> Signed-off-by: 5kbpers <[email protected]> * support batch coprocessor (#586) Add batch coprocessor function for TiFlash Engine. Signed-off-by: 5kbpers <[email protected]> * pd: add UpdateServiceGCSafePoint method (#603) * pd: add UpdateServiceGCSafePoint method Signed-off-by: Shafreeck Sea <[email protected]> Signed-off-by: 5kbpers <[email protected]> * Add end_key_exclude field to SstMeta and distinguish restoring of RawKv (#581) * Add end_key_exclusive field to SSTMeta * Add is_raw_kv field to download request * Revert changes of unrelated go files Signed-off-by: MyonKeminta <[email protected]> * build Co-authored-by: MyonKeminta <[email protected]> Signed-off-by: 5kbpers <[email protected]> * Revert "cdc: add regions field for reducing message of resolved ts" This reverts commit c382b16. Signed-off-by: 5kbpers <[email protected]> Co-authored-by: disksing <[email protected]> Co-authored-by: Jay <[email protected]> Co-authored-by: Han Fei <[email protected]> Co-authored-by: Shafreeck Sea <[email protected]> Co-authored-by: MyonKeminta <[email protected]> Co-authored-by: MyonKeminta <[email protected]>
…ive (#7196) (#9583) cherry-pick #7196 to release-4.0 --- <!-- Thank you for contributing to TiKV! If you haven't already, please read TiKV's [CONTRIBUTING](https://github.com/tikv/tikv/blob/master/CONTRIBUTING.md) document. If you're unsure about anything, just ask; somebody should be along to answer within a day or two. --> ### What have you changed? Partially fixes #7163 , but it still doesn't work for restoring plain transactional kv (without TiDB). This PR adds is_raw_kv field to DownloadRequest to distinguish rawkv restore requests, and adds end_key_exclusive field to SstMeta so that TiKV knows whether the endkey need to be included.l ### What is the type of the changes? - Bugfix (a change which fixes an issue) ### How is the PR tested? - Unit test - Manual test (add detailed scripts or steps below) ### Does this PR affect documentation (docs) or should it be mentioned in the release notes? (I'm not sure if it's necessary) * Fix the issue that when restoring partial of backed up raw kv data, TiKV may write out-of-range keys. ### Does this PR affect `tidb-ansible`? ### Refer to a related PR or issue link (optional) - [x] kvproto pingcap/kvproto#581 - [ ] Corresponding PR of BR ### Release note * No release note
…ive (tikv#7196) (tikv#9583) cherry-pick tikv#7196 to release-4.0 --- <!-- Thank you for contributing to TiKV! If you haven't already, please read TiKV's [CONTRIBUTING](https://github.com/tikv/tikv/blob/master/CONTRIBUTING.md) document. If you're unsure about anything, just ask; somebody should be along to answer within a day or two. --> ### What have you changed? Partially fixes tikv#7163 , but it still doesn't work for restoring plain transactional kv (without TiDB). This PR adds is_raw_kv field to DownloadRequest to distinguish rawkv restore requests, and adds end_key_exclusive field to SstMeta so that TiKV knows whether the endkey need to be included.l ### What is the type of the changes? - Bugfix (a change which fixes an issue) ### How is the PR tested? - Unit test - Manual test (add detailed scripts or steps below) ### Does this PR affect documentation (docs) or should it be mentioned in the release notes? (I'm not sure if it's necessary) * Fix the issue that when restoring partial of backed up raw kv data, TiKV may write out-of-range keys. ### Does this PR affect `tidb-ansible`? ### Refer to a related PR or issue link (optional) - [x] kvproto pingcap/kvproto#581 - [ ] Corresponding PR of BR ### Release note * No release note
…Kv (pingcap#581) * Add end_key_exclusive field to SSTMeta * Add is_raw_kv field to download request * Revert changes of unrelated go files Signed-off-by: MyonKeminta <[email protected]> * build Co-authored-by: MyonKeminta <[email protected]>
See tikv/tikv#7163