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
raftstore-v2: not update modification index for delete range #14905
raftstore-v2: not update modification index for delete range #14905
Conversation
[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 submitting an approval review. |
Do you mean this code " fn maybe_advance_admin_flushed(&mut self, mem_index: u64) { |
Signed-off-by: Spade A <u6748471@anu.edu.au>
|
Signed-off-by: Spade A <u6748471@anu.edu.au>
/merge |
@overvenus: It seems you want to merge this PR, I will help you trigger all the tests: /run-all-tests You only need to trigger
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: 7d1d857
|
In response to a cherrypick label: new pull request created to branch |
) close tikv#14904 not update modification index for delete range Signed-off-by: Spade A <u6748471@anu.edu.au> Signed-off-by: tonyxuqqi <tonyxuqi@outlook.com>
What is changed and how it works?
Issue Number: Close #14904
What's Changed:
If key range are matched well with sst files, delete range may not produce entries in memtable. It means it is possible that the memtable is empty after delete range for default cf for instance, and there's no further write/delete for default cf,
last_modified
will never equal tolast_flushed
for this cf. So, admin flushed index will never be progressed.As delete range is an usafe operation and cannot be rollbacked to replay, so it's better to not modify the modification index for delete range operation.
Related changes
pingcap/docs
/pingcap/docs-cn
:Check List
Tests
Release note