-
Notifications
You must be signed in to change notification settings - Fork 726
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
unsafe recovery: Introduce auto-detect mode for online recovery #5403
Conversation
Signed-off-by: Connor1996 <zbk602423539@gmail.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: Connor1996 <zbk602423539@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #5403 +/- ##
==========================================
- Coverage 75.71% 75.60% -0.12%
==========================================
Files 313 313
Lines 31101 31128 +27
==========================================
- Hits 23549 23535 -14
- Misses 5544 5588 +44
+ Partials 2008 2005 -3
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
PTAL @v01dstar |
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.
LGTM
@v01dstar: Thanks for your review. The bot only counts approvals from reviewers and higher roles in list, but you're still welcome to leave your comments. In response to this:
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. |
Signed-off-by: Connor1996 <zbk602423539@gmail.com>
@@ -615,13 +625,22 @@ func (u *unsafeRecoveryController) recordAffectedRegion(region *metapb.Region) { | |||
} | |||
} | |||
|
|||
func (u *unsafeRecoveryController) isFailed(peer *metapb.Peer) bool { | |||
_, isFailed := u.failedStores[peer.StoreId] | |||
_, isLive := u.storeReports[peer.StoreId] |
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 need to wait for at least a round of store heartbeat?
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.
Can't avoid that for all the corner cases, add caveat in the flag comment
Signed-off-by: Connor1996 <zbk602423539@gmail.com>
Signed-off-by: Connor1996 <zbk602423539@gmail.com>
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.
The rest LGTM.
Signed-off-by: Connor1996 <zbk602423539@gmail.com>
/merge |
@Connor1996: It seems you want to merge this PR, I will help you trigger all the tests: /run-all-tests 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: 5a6ca56
|
Signed-off-by: Connor1996 zbk602423539@gmail.com
What problem does this PR solve?
Issue Number: Close #5415
What is changed and how does it work?
Check List
Tests
Related changes
pingcap/docs
/pingcap/docs-cn
: Add description for auto detect mode of online recovery pingcap/docs-cn#10979Release note