region_scatter: fix a bug that the leaders may be unbalanced after scatter region (#6054)#6060
Conversation
close tikv#6017 Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
|
[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. DetailsReviewer can indicate their review by submitting an approval review. |
|
should merge #6128 |
Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>
d69ae0a to
0f57c1b
Compare
Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>
Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## release-6.1 #6060 +/- ##
===============================================
- Coverage 75.44% 75.43% -0.02%
===============================================
Files 307 307
Lines 30481 30491 +10
===============================================
+ Hits 22997 23000 +3
- Misses 5486 5489 +3
- Partials 1998 2002 +4
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 21 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>
| } | ||
|
|
||
| func allowLeader(fit *placement.RegionFit, peer *metapb.Peer) bool { | ||
| switch peer.GetRole() { |
There was a problem hiding this comment.
maybe skip pending peer.
|
/merge |
|
@CabinfeverB: It seems you want to merge this PR, I will help you trigger all the tests: /run-all-tests DetailsInstructions 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. DetailsCommit hash: d271751 |
This is an automated cherry-pick of #6054
What problem does this PR solve?
Issue Number: Close #6017
What is changed and how does it work?
Use a more correct method to select candidate leaders.
Check List
Tests
Code changes
Side effects
Related changes
Release note