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: clean up import sst file only if flushed epoch is stale. #15064
Conversation
Signed-off-by: bufferflies <1045931706@qq.com>
[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. |
Signed-off-by: bufferflies <1045931706@qq.com>
Signed-off-by: bufferflies <1045931706@qq.com>
Signed-off-by: bufferflies <1045931706@qq.com>
Signed-off-by: bufferflies <1045931706@qq.com>
@@ -183,6 +199,7 @@ impl<EK: KvEngine, ER: RaftEngine> Storage<EK, ER> { | |||
gen_snap_task: RefCell::new(Box::new(None)), | |||
split_init: None, | |||
apply_trace, | |||
flushed_epoch: epoch, |
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.
It seems this epoch is the newly epoch and irrelevant with flush
.
Will it delete the file before ingest replayed after restart?
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.
Q1: epoch
refresh only if trace.admin.index
has writed in the disk.
Q2: sst will be delete if the sst's epoch is stale than the flush epoch
Signed-off-by: bufferflies <1045931706@qq.com>
/ping @overvenus @3pointer |
Signed-off-by: bufferflies <1045931706@qq.com>
/merge |
@pingyu: 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: 725351a
|
@bufferflies: Your PR was out of date, I have automatically updated it for you. If the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes. 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. |
/test |
In response to a cherrypick label: new pull request created to branch |
close tikv#15018 Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
What is changed and how it works?
Issue Number: Close #15018
What's Changed:
Related changes
pingcap/docs
/pingcap/docs-cn
:Check List
Tests
Side effects
Release note