-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
Create table with placement policy complains ERROR 1105 (HY000) #29006
Comments
/label sig/sql-infra |
@aylei: The label(s) 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. |
Specifying
|
After I deployed a cluster and tracked the PD call stack, I find the main reason is that PD will override the rule in the same bundle with the key made from bundleID + ruleID Here is some details: Here will use the bundleID + ruleID as the key in the map in the reproduced cases above,I found the rules uploaded from TiDB didn't distinguish the ruleID in the same bundle which is done by my previous miss. So here, I try with my hotfix and test it in the real cluster, this case is nowhere to be found. Maybe this issue is not like the one that wanghe try to solve. |
It is. But now it looks like that there is another failure reason... |
Please check whether the issue should be labeled with 'affects-x.y' or 'fixes-x.y.z', and then remove 'needs-more-info' label. |
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
us-central1
,us-west1
andasia-northeast1
on GCP2. What did you expect to see? (Required)
Create table succeed with
PLACEMENT POLICY=global
3. What did you see instead (Required)
ERROR 1105 (HY000): failed to notify PD the placement rules: "[PD:placement:ErrBuildRuleList]build rule list failed, needs at least one leader or voter for range {7480000000000000FF4900000000000000F8, 7480000000000000FF4A00000000000000F8}"
4. What is your TiDB version? (Required)
Release Version: v5.3.0-alpha-1155-g756d0ffc9
Edition: Community
Git Commit Hash: 756d0ff
Git Branch: master
UTC Build Time: 2021-10-20 07:59:07
GoVersion: go1.16.4
Race Enabled: false
TiKV Min Version: v3.0.0-60965b006877ca7234adaced7890d7b029ed1306
Check Table Before Drop: false
The text was updated successfully, but these errors were encountered: