-
Notifications
You must be signed in to change notification settings - Fork 719
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 (#2830) #2980
*: Bug Fix/CLUSTER_INFO system table may not work after PD is scaled-in (#2830) #2980
Conversation
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
Codecov Report
@@ Coverage Diff @@
## release-4.0 #2980 +/- ##
===============================================
+ Coverage 77.16% 77.24% +0.07%
===============================================
Files 204 209 +5
Lines 21940 22880 +940
===============================================
+ Hits 16931 17674 +743
- Misses 3724 3862 +138
- Partials 1285 1344 +59
Continue to review full report at Codecov.
|
Signed-off-by: jyz0309 <45495947@qq.com>
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
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
/merge |
/run-all-tests |
@ti-srebot merge failed. |
/run-all-tests |
2 similar comments
/run-all-tests |
/run-all-tests |
/merge |
Your auto merge job has been accepted, waiting for:
|
/merge |
Your auto merge job has been accepted, waiting for:
|
/run-all-tests |
@ti-srebot merge failed. |
/run-all-tests |
cherry-pick #2830 to release-4.0
What problem does this PR solve?
Issue Number: close pingcap/tidb#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:
Add the GetMemberInfo function to client interface, use grpc GetMembers() to get the pd members info.
How it Works:
use grpc GetMembers() to get the pd members info.
Related changes
pingcap/pd/client/client.go
;Check List
Tests
steps:
select * from INFORMATION_SCHEMA.CLUSTER_INFO;
to test scale out and scale inSide effects
Release note
GetAllMembers
function to get pd member info