-
Notifications
You must be signed in to change notification settings - Fork 720
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
scheduler: add leader verify in balance-region scheduler (#2966) #2994
Conversation
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
Signed-off-by: Song Gao <disxiaofei@163.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.
LGTM
/merge |
/run-all-tests |
@ti-srebot merge failed. |
/run-all-tests |
server/schedulers/balance_test.go
Outdated
func (s *testBalanceRegionSchedulerSuite) TestShouldNotBalance(c *C) { | ||
opt := config.NewTestOptions() | ||
tc := mockcluster.NewCluster(opt) | ||
tc.DisableFeature(versioninfo.JointConsensus) |
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.
not supported in release-4.0
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.
nice catch
/merge |
Your auto merge job has been accepted, waiting for:
|
/run-all-tests |
@ti-srebot merge failed. |
/merge |
Your auto merge job has been accepted, waiting for:
|
/merge |
Your auto merge job has been accepted, waiting for:
|
/run-all-tests |
1 similar comment
/run-all-tests |
@ti-srebot merge failed. |
/run-all-tests |
1 similar comment
/run-all-tests |
@ti-srebot merge failed. |
/run-integration-ddl-test |
/run-integration-lightning-test |
/merge |
/run-all-tests |
@ti-srebot merge failed. |
/run-integration-lightning-test |
/rebuild |
cherry-pick #2966 to release-4.0
Signed-off-by: Song Gao disxiaofei@163.com
What problem does this PR solve?
If the region have no leader during balance-region, it will pause PD panic and restart over and over.
What is changed and how it works?
Check region leader before balance region. If it has no leader, the balance for this region would be skipped.
Check List
Tests
Related changes
Release note
balance-region
enabled.