-
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: cli refactor backup error handling logic #54697
base: master
Are you sure you want to change the base?
br: cli refactor backup error handling logic #54697
Conversation
Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it. 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 kubernetes/test-infra repository. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Hi @Tristan1900. Thanks for your PR. PRs from untrusted users cannot be marked as trusted with I understand the commands that are listed here. 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 kubernetes-sigs/prow repository. |
} | ||
|
||
// messageIsNotFoundStorageError checks whether the message returning from TiKV is "NotFound" storage I/O error | ||
func messageIsNotFoundStorageError(msg string) bool { |
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.
@3pointer does the storage here mean S3 or any backup destination? At first I thought it's TiKV internal but there is a proto type for it already so got a bit confused. Thanks
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.
at this context storage means TiKV.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #54697 +/- ##
=================================================
- Coverage 72.8958% 56.4630% -16.4329%
=================================================
Files 1552 1674 +122
Lines 437298 609406 +172108
=================================================
+ Hits 318772 344089 +25317
- Misses 99002 241622 +142620
- Partials 19524 23695 +4171
Flags with carried forward coverage won't be shown. Click here to find out more.
|
@@ -0,0 +1,181 @@ | |||
package utils |
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.
new file should add license first, you can copy from other files.
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.
ah! good catch
} | ||
|
||
// messageIsNotFoundStorageError checks whether the message returning from TiKV is "NotFound" storage I/O error | ||
func messageIsNotFoundStorageError(msg string) bool { |
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.
at this context storage means TiKV.
PR needs rebase. 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 kubernetes/test-infra repository. |
Signed-off-by: Wenqi Mou <[email protected]>
Signed-off-by: Wenqi Mou <[email protected]>
Signed-off-by: Wenqi Mou <[email protected]>
Signed-off-by: Wenqi Mou <[email protected]>
Signed-off-by: Wenqi Mou <[email protected]>
Signed-off-by: Wenqi Mou <[email protected]>
0387ae6
to
62b39d0
Compare
Signed-off-by: Wenqi Mou <[email protected]>
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
|
||
const ( | ||
// Retry error can be retried but will consume the backoff attempt quota. | ||
Retry ErrorHandlingStrategy = iota |
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.
Perhaps use StrategyRetry
so we can know its type when using outside this package.
What problem does this PR solve?
Issue Number: close #54696
Problem Summary:
What changed and how does it work?
handleErrorPb
andHandleError
Check List
Tests
Side effects
Documentation
Release note
NA