-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
*: Bug Fix/CLUSTER_INFO system table may not work after PD is scaled-in (#19355) #20026
*: Bug Fix/CLUSTER_INFO system table may not work after PD is scaled-in (#19355) #20026
Conversation
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
/run-all-tests |
Signed-off-by: jyz0309 <45495947@qq.com>
…into release-4.0-c679f847fc5a init
/run-all-tests |
1 similar comment
/run-all-tests |
Signed-off-by: jyz0309 <45495947@qq.com>
/label DNM |
These labels are not found |
/label status/DNM |
plz DNM this request as we found that the newly added pdclient interface |
We also need to change the hash of the PD. |
/run-all-tests |
Signed-off-by: jyz0309 <45495947@qq.com>
Signed-off-by: jyz0309 <45495947@qq.com>
Signed-off-by: jyz0309 <45495947@qq.com>
/run-all-tests |
@breeswish @crazycs520 PTAL |
@wjhuang2016 PTAL |
/run-all-tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
/run-all-tests |
/run-unit-test |
/run-sqllogic-test-2 |
@breeswish PTAL, maybe can merge? |
@lzmhhh123 Please help merge this PR, thanks! |
LGTM |
Thanks for your contribution! @jyz0309 |
cherry-pick #19355 to release-4.0
What problem does this PR solve?
Issue Number: close #18990
Problem Summary:
CLUSTER_INFO system table may not work after PD is scaled-in
What is changed and how it works?
What's Changed:
Changed the EtcdAddrs() to get correct pd members info
Changed the GetPDServerInfo function, add rpc GetMember() in pd and TiDB use grpc to get the pd members info.
How it Works:
Use grpc to get the pd members url, then use pd-api
/pd/api/v1/config/cluster-version
and/pd/api/v1/config/status
to get member version githash infoRelated changes
pingcap/tidb/infoschema/tables.go
andpingcap/tidb/util/pdapi/const.go
:Check List
Tests
steps:
use tiup playground scale-out --pd 2 to scale out pd
use mysql to connect TiDB
select * from INFORMATION_SCHEMA.CLUSTER_INFO;
to test scale out and scale inSide effects
Release note