Expired pd address is used when update region-label/rules #35653
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.
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
The text was updated successfully, but these errors were encountered: