Please answer these questions before submitting your issue. Thanks!
Scale-in PD.
Successfully query INFORMATION_SCHEMA.CLUSTER_INFO
It tries to access a PD that no longer exists. dial tcp xxxx: connect: connection refused
v4.0.4
Friendly hint: According to current code base, the scaled-out PD node may be displayed improperly as well.
alkaid will fix it :)
when I try to scale in 3 tidb,I found tiup playground display and select * from INFORMATION_SCHEMA.CLUSTER_INFO; will return correct answer(have 3 tidb), but when I scale out 1 tidb, I found that tiup playground display will return correct answer(2 tidb) but select * from INFORMATION_SCHEMA.CLUSTER_INFO; will not, it still show me 3 tidb in cluster
when I try to scale in 3 tidb,I found
tiup playground displayandselect * from INFORMATION_SCHEMA.CLUSTER_INFO;will return correct answer(have 3 tidb), but when I scale out 1 tidb, I found thattiup playground displaywill return correct answer(2 tidb) butselect * from INFORMATION_SCHEMA.CLUSTER_INFO;will not, it still show me 3 tidb in cluster
CLSUTER_INFO is based on some reporting items from TiDB with a lease, how about the result after 1 minute?
when I try to scale in 3 tidb,I found
tiup playground displayandselect * from INFORMATION_SCHEMA.CLUSTER_INFO;will return correct answer(have 3 tidb), but when I scale out 1 tidb, I found thattiup playground displaywill return correct answer(2 tidb) butselect * from INFORMATION_SCHEMA.CLUSTER_INFO;will not, it still show me 3 tidb in clusterCLSUTER_INFO is based on some reporting items from TiDB with a lease, how about the result after 1 minute?
The select * from INFORMATION_SCHEMA.CLUSTER_INFO; result is still wrong after 5min :(
@jyz0309 Good catch, go on and discover why
Not fixed yet
Note: Make Sure that 'component', and 'severity' labels are added
Example for how to fill out the template: https://github.com/pingcap/tidb/issues/20100
TiDB uses etcd address in CLI, which is unchanged when PD has dynamic member change.
Query INFORMATION_SCHEMA.CLUSTER_INFO will fail.
In TiDB Dashboard, cluster info page may fail.
Scale-in PD.
Ensure latest PD is updated to TiDB (in TiUP, use cluster reload).
Restart TiDB.
[v4.0.1:v4.0.6]
v4.0.7