-
Notifications
You must be signed in to change notification settings - Fork 727
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
change placement rule from voter to learner after some store down, find learner count not equal to the setting in placement rule #7358
Labels
Comments
/severity moderate |
There are three peers which are all down peers and learner in rule fits, and there is a peer which is pending peer, down peer and learner in orphan peers. In current code, when there are pending or down peer in rule fits, we will try to replace it with orphan peer, so it cannot be successful. |
but it seems to be expected #4067 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Report
What did you do?
original placement rule:
var PlacementRuleConfigDrAutosync = fmt.Sprintf(PlacementRuleZoneTmp,
"voter", 1, "zone", "dc1-zone1",
"voter", 1, "zone", "dc1-zone2",
"voter", 1, "zone", "dc1-zone3",
"follower", 1, "zone", "dc2-zone1",
"follower", 1, "zone", "dc2-zone2",
"learner", 1, "zone", "dc2-zone3",
)
The new setting of the placement rule:
var PlacementRuleDowngrade3 = fmt.Sprintf(PlacementRuleZoneTmp,
"voter", 1, "zone", "dc1-zone1",
"voter", 1, "zone", "dc1-zone2",
"voter", 1, "zone", "dc1-zone3",
"learner", 1, "zone", "dc2-zone1",
"learner", 1, "zone", "dc2-zone2",
"learner", 1, "zone", "dc2-zone3",
)
What did you expect to see?
Learner count for each region should equal 3.
What did you see instead?
There are four learner in one region.
What version of PD are you using (
pd-server -V
)?20231026-6.5.4-ONCALL-6501
The text was updated successfully, but these errors were encountered: