Skip to content
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

Expired pd address is used when update region-label/rules #35653

Closed
King-Dylan opened this issue Jun 22, 2022 · 1 comment
Closed

Expired pd address is used when update region-label/rules #35653

King-Dylan opened this issue Jun 22, 2022 · 1 comment
Labels
affects-5.3 This bug affects 5.3.x versions. affects-5.4 This bug affects the 5.4.x(LTS) versions. affects-6.0 component/pd duplicate Issues or pull requests already exists. severity/major sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.

Comments

@King-Dylan
Copy link
Contributor

King-Dylan commented Jun 22, 2022

Bug Report

The drop database operation may fail after updated all pd addresses because the pd addresses in the region-rule (PDLabelManager.addrs ) were not updated in time.
Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

1.create new cluster
2.scale-out new pd member
3.scale-in all old pd member
4.drop database

2. What did you expect to see? (Required)

3. What did you see instead (Required)

MySQL > drop database test1;
ERROR 1105 (HY000): Patch "http://xxx.xxx.xxx:2879/pd/api/v1/config/region-label/rules": dial tcp xxx.xxx.xxx.xxx:2879: connect: connection refused

4. What is your TiDB version? (Required)

v5.4

@King-Dylan King-Dylan added the type/bug The issue is confirmed as a bug. label Jun 22, 2022
@ti-chi-bot ti-chi-bot added may-affects-4.0 This bug maybe affects 4.0.x versions. may-affects-5.0 This bug maybe affects 5.0.x versions. may-affects-5.1 This bug maybe affects 5.1.x versions. may-affects-5.2 This bug maybe affects 5.2.x versions. may-affects-5.3 This bug maybe affects 5.3.x versions. may-affects-5.4 This bug maybe affects 5.4.x versions. may-affects-6.0 may-affects-6.1 labels Jun 23, 2022
@seiya-annie
Copy link

duplicated with #33908

@seiya-annie seiya-annie added affects-5.3 This bug affects 5.3.x versions. affects-5.4 This bug affects the 5.4.x(LTS) versions. affects-6.0 duplicate Issues or pull requests already exists. and removed may-affects-4.0 This bug maybe affects 4.0.x versions. may-affects-5.1 This bug maybe affects 5.1.x versions. may-affects-5.2 This bug maybe affects 5.2.x versions. may-affects-5.3 This bug maybe affects 5.3.x versions. may-affects-5.4 This bug maybe affects 5.4.x versions. may-affects-5.0 This bug maybe affects 5.0.x versions. may-affects-6.0 may-affects-6.1 labels Jun 23, 2022
@jebter jebter closed this as completed Jul 26, 2022
@jebter jebter added the sig/sql-infra SIG: SQL Infra label Jul 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-5.3 This bug affects 5.3.x versions. affects-5.4 This bug affects the 5.4.x(LTS) versions. affects-6.0 component/pd duplicate Issues or pull requests already exists. severity/major sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.
Projects
None yet
Development

No branches or pull requests

5 participants