-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Fix the issue that end key of a partial rawkv-restore range is inclusive (#7196) #9583
Fix the issue that end key of a partial rawkv-restore range is inclusive (#7196) #9583
Conversation
…ive (tikv#7196) Signed-off-by: MyonKeminta <[email protected]>
LGTM |
@3pointer: Please use If you use the GitHub review feature, please approve the PR directly, the comment will not take effect in the GitHub review feature. If you have any qustions please refer to lgtm command help or lgtm plugin design. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
/run-all-tests |
/lgtm |
/run-all-tests |
/lgtm |
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by writing |
/merge |
@MyonKeminta: It seems you want to merge this PR, I will help you trigger all the tests: /run-all-tests You only need to trigger If you have any questions about the PR merge process, please refer to pr process. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
@MyonKeminta: In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
/merge |
@3pointer: It seems you want to merge this PR, I will help you trigger all the tests: /run-all-tests You only need to trigger If you have any questions about the PR merge process, please refer to pr process. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
This pull request has been accepted and is ready to merge. Commit hash: 7be5dd2
|
@MyonKeminta: Your PR has out-of-dated, I have automatically updated it for you. At the same time I will also trigger all tests for you: /run-all-tests Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
…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
cherry-pick #7196 to release-4.0
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?
How is the PR tested?
Does this PR affect documentation (docs) or should it be mentioned in the release notes?
(I'm not sure if it's necessary)
Does this PR affect
tidb-ansible
?Refer to a related PR or issue link (optional)
Release note