-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
br: Fix stuck when meeting error #33201
Conversation
Signed-off-by: Yu Juncen <[email protected]>
Signed-off-by: Yu Juncen <[email protected]>
[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: Yu Juncen <[email protected]>
Signed-off-by: Yu Juncen <[email protected]>
} | ||
|
||
func (f *fakeRestorer) RestoreFiles(ctx context.Context, files []*backuppb.File, rewriteRules *restore.RewriteRules, updateCh glue.Progress) error { | ||
if ctx.Err() != nil { |
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.
🤔 do we have similar code in real RestoreFiles?
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.
Probably, but hidden in some internal call of the clients.
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.
/run-unit-test |
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.
rest LGTM
Code Coverage Details: https://codecov.io/github/pingcap/tidb/commit/3665926659f6cb7438c346edd002451fe57c6e17 |
/run-integration-br-tests |
1 similar comment
/run-integration-br-tests |
/run-integration-br-tests |
/run-unit-test |
/run-integration-br-tests |
/run-integration-tests |
/run-integration-br-tests |
3 similar comments
/run-integration-br-tests |
/run-integration-br-tests |
/run-integration-br-tests |
/run-integration-br-tests |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: d2fd985
|
/run-all-tests |
/run-unit-test |
Signed-off-by: ti-srebot <[email protected]>
cherry pick to release-5.3 in PR #33267 |
Signed-off-by: ti-srebot <[email protected]>
cherry pick to release-5.4 in PR #33268 |
Signed-off-by: ti-srebot <[email protected]>
cherry pick to release-6.0 in PR #33269 |
What problem does this PR solve?
Issue Number: close #33200
Problem Summary:
What is changed and how it works?
This make the worker of
TiKVSender
select over the context created by the error group(instead of its parent context), so they can get aware of the error happened and exit properly.This also make an interface
TiKVRestorer
, which is the backend forTiKVSender
, these can make us easier to writing unit tests.Check List
Tests
Release note