-
Notifications
You must be signed in to change notification settings - Fork 753
ctl: support to query the members and primary by using pdctl #9564
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
Conversation
|
Skipping CI for Draft Pull Request. |
Signed-off-by: 童剑 <1045931706@qq.com>
| return c | ||
| } | ||
|
|
||
| // NewMicroServiceCommand returns a micro-service command. |
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.
Shall we put them into member command?
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.
There is one command(member leader). I'm afraid the command is so similar to the mcs. Or do you think what's better command to show the mcs membership?
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.
Then, how about adding a new subcommand in the root command?
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.
done
Signed-off-by: 童剑 <1045931706@qq.com>
dea58b8 to
d927788
Compare
lhy1024
left a comment
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.
the rest LGTM
okJiang
left a comment
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.
This is a feature request. Do you have a spec to explain the demand?
Signed-off-by: 童剑 <1045931706@qq.com>
5fc82c6 to
04ef3e3
Compare
Not the feature request, it's only for the debug |
Signed-off-by: 童剑 <1045931706@qq.com>
|
/ping @rleungx |
|
/ping @rleungx |
tools/pd-ctl/pdctl/ctl.go
Outdated
| command.NewKeyspaceGroupCommand(), | ||
| command.NewKeyspaceCommand(), | ||
| command.NewResourceManagerCommand(), | ||
| command.NewMsCommand(), |
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.
How about NewMicroServicesCommand or NewServicesCommand?
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.
done
tests/cluster.go
Outdated
| } | ||
|
|
||
| // GetTsoDefaultSpacePrimaryServer returns the primary TSO server for the default keyspace and keyspace group. | ||
| func (c *TestCluster) GetTsoDefaultSpacePrimaryServer() *tso.Server { |
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.
| func (c *TestCluster) GetTsoDefaultSpacePrimaryServer() *tso.Server { | |
| func (c *TestCluster) GetDefaultTSOPrimaryServer() *tso.Server { |
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.
done
tests/cluster.go
Outdated
| } | ||
|
|
||
| // SetTsoCluster sets the TSO cluster. | ||
| func (c *TestCluster) SetTsoCluster(cluster *TestTSOCluster) { |
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.
| func (c *TestCluster) SetTsoCluster(cluster *TestTSOCluster) { | |
| func (c *TestCluster) SetTSOCluster(cluster *TestTSOCluster) { |
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.
done
Signed-off-by: 童剑 <1045931706@qq.com>
rleungx
left a comment
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.
The rest LGTM
Signed-off-by: 童剑 <1045931706@qq.com>
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lhy1024, rleungx The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Signed-off-by: 童剑 <1045931706@qq.com>
Signed-off-by: 童剑 <1045931706@qq.com>
close tikv#9567 Signed-off-by: 童剑 <1045931706@qq.com> Signed-off-by: okjiang <819421878@qq.com>
|
@bufferflies: You cannot manually add or delete the cherry pick branch category labels. It will be added automatically by bot when the PR is created. DetailsIn response to adding label named type/cherry-pick-for-release-8.5. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
close tikv#9567 Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
|
In response to a cherrypick label: new pull request created to branch |
What problem does this PR solve?
Issue Number: Close #9567
What is changed and how does it work?
Check List
Tests
Code changes
Side effects
Related changes
Release note