-
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
The placement-rule generated by placement-rule-in-SQL may unexpectedly add Region peer to tiflash compute node #58633
Comments
Ref pingcap/tiflash#9750 (comment) Root causeWhen creating a placement policy through tidb, tidb will create a placement-rule with The logic in PD of choosing store for rule: pkg/schedule/placement/label_constraint.go @ pd
So the PD would pick tiflash compute node as target store to place the Region peer. WorkaroundAs a workaround, user can explicitly exclude tiflash and tiflash_compute in theirs rule before this behavior is fixed. For example
|
/assign |
/label severity/major |
@JaySon-Huang: 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. |
/severity major |
/affects-8.5 |
/label affects-8.5 |
/label affects-8.1 |
/label affects-7.5 |
/label affects-7.1 |
/label affects-6.5 |
/label affects-6.1 |
/remove-label affects-5.4 |
@JaySon-Huang: These labels are not set on the issue: 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. |
/remove-label may-affects-5.4 |
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
Reported from https://asktug.com/t/topic/1037727
Details root cause is described in pingcap/tiflash#9750
Reproduce steps:
2. What did you expect to see? (Required)
The placement policy applied to the table and the tidb cluster run normally
3. What did you see instead (Required)
The tiflash compute node crash as the tiflash issue descripe
4. What is your TiDB version? (Required)
v7.5.4
The text was updated successfully, but these errors were encountered: