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: continue GC snapshot files when it encounters a corrupted snapshot #10831
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. |
c2e16d6
to
e7c9ff6
Compare
7186e23
to
36bd2cc
Compare
…apshot. add a fail_point on get_snapshot_for_gc Signed-off-by: qi.xu <tonxuqi@outlook.com>
Rest LGTM. |
/merge |
@hicqu: 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: f8cc4f2
|
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
cherry pick to release-4.0 in PR #10871 |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
cherry pick to release-5.0 in PR #10872 |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
cherry pick to release-5.1 in PR #10873 |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
cherry pick to release-5.2 in PR #10874 |
…snapshot (#10831) (#10871) * cherry pick #10831 to release-4.0 Signed-off-by: ti-srebot <ti-srebot@pingcap.com> * backport the test case test_snapshot_gc_after_failed to 4.0 Signed-off-by: qi.xu <tonxuqi@outlook.com> Co-authored-by: tonyxuqqi <tonyxuqi@outlook.com> Co-authored-by: qi.xu <tonxuqi@outlook.com> Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
…snapshot (#10831) (#10872) * cherry pick #10831 to release-5.0 Signed-off-by: ti-srebot <ti-srebot@pingcap.com> * fix conflict Signed-off-by: Jay Lee <BusyJayLee@gmail.com> * remove extra case Signed-off-by: Jay Lee <BusyJayLee@gmail.com> * fix missing method Signed-off-by: Jay Lee <BusyJayLee@gmail.com> Co-authored-by: tonyxuqqi <tonyxuqi@outlook.com> Co-authored-by: Jay Lee <BusyJayLee@gmail.com> Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
…snapshot (tikv#10831) add a fail_point on get_snapshot_for_gc Signed-off-by: qi.xu <tonxuqi@outlook.com> Signed-off-by: tangjk <tangjiankun1226@gmail.com>
…snapshot (#10831) (#10873) * cherry pick #10831 to release-5.1 Signed-off-by: ti-srebot <ti-srebot@pingcap.com> * resolve conflict in test_snap.rs Signed-off-by: qi.xu <tonxuqi@outlook.com> Co-authored-by: tonyxuqqi <tonyxuqi@outlook.com> Co-authored-by: qi.xu <tonxuqi@outlook.com> Co-authored-by: qupeng <qupeng@pingcap.com> Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
What problem does this PR solve?
Issue Number: close #10813
Problem Summary:
What is changed and how it works?
When snapshot GC runs into problem (such as file corrupted), today it stopped processing other GC-able snapshot files.
This PR will make it continue processing rest of the snapshot files.
Related changes
Tests
Side effects
No.
Release note
/cc @BusyJay