-
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
A small number of TiFlash replica cannot be created #5401
Comments
I found the root cause of this problem. When the region is in the joint state due to executing operator such as move-peer, at this time, if the placement rule is created and the key range of the rule is smaller than that of the region, The Joint Checker fails to match the rule during building Opearator, while the Split Checker skips the region because it is in joint state, resulting in a deadlock like situation. |
following code return > 0 when region doesn't cross multi range , otherwise return -1: pd/server/schedule/rangelist/range_list.go Lines 56 to 64 in 750aada
|
close #5401 Signed-off-by: HunDunDM <hundundm@gmail.com>
close tikv#5401 Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
close tikv#5401 Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
close tikv#5401 Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
close tikv#5401 Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
close tikv#5401 Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
close tikv#5401 Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
close #5401, ref #5458 Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io> Signed-off-by: nolouch <nolouch@gmail.com> Signed-off-by: HunDunDM <hundundm@gmail.com> Co-authored-by: 混沌DM <hundundm@gmail.com> Co-authored-by: nolouch <nolouch@gmail.com> Co-authored-by: HunDunDM <hundundm@gmail.com>
Bug Report
What did you do?
Enable
shuffle-region-scheduler
create some new tables and create TiFlash replica for these tables.
What did you expect to see?
All table's TiFlash replicas will be AVAILABLE normally.
What did you see instead?
A TiFlash replica is UNAVAILABLE.
And found region info
What version of PD are you using (
pd-server -V
)?v6.2.0-alpha-146-g99e38eb7
The text was updated successfully, but these errors were encountered: