Skip to content

Conversation

@bufferflies
Copy link
Contributor

@bufferflies bufferflies commented Jul 17, 2025

What problem does this PR solve?

Issue Number: Close #9567

What is changed and how does it work?

Check List

Tests

  • Unit test
  • Integration test

Code changes

Side effects

Related changes

Release note

None.

Signed-off-by: 童剑 <1045931706@qq.com>
Signed-off-by: 童剑 <1045931706@qq.com>
Signed-off-by: 童剑 <1045931706@qq.com>
@ti-chi-bot
Copy link
Contributor

ti-chi-bot bot commented Jul 17, 2025

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@ti-chi-bot ti-chi-bot bot added do-not-merge/needs-linked-issue do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. release-note-none Denotes a PR that doesn't merit a release note. dco-signoff: yes Indicates the PR's author has signed the dco. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jul 17, 2025
@bufferflies bufferflies marked this pull request as ready for review July 18, 2025 06:16
@ti-chi-bot ti-chi-bot bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 18, 2025
@bufferflies bufferflies requested review from okJiang and rleungx July 21, 2025 01:40
Signed-off-by: 童剑 <1045931706@qq.com>
return c
}

// NewMicroServiceCommand returns a micro-service command.
Copy link
Member

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?

Copy link
Contributor Author

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?

Copy link
Member

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?

Copy link
Contributor Author

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>
Signed-off-by: 童剑 <1045931706@qq.com>
@bufferflies bufferflies requested a review from lhy1024 July 22, 2025 10:04
Copy link
Contributor

@lhy1024 lhy1024 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the rest LGTM

Copy link
Member

@okJiang okJiang left a 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?

@ti-chi-bot ti-chi-bot bot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jul 23, 2025
Signed-off-by: 童剑 <1045931706@qq.com>
@bufferflies
Copy link
Contributor Author

This is a feature request. Do you have a spec to explain the demand?

Not the feature request, it's only for the debug

Signed-off-by: 童剑 <1045931706@qq.com>
@bufferflies bufferflies requested a review from lhy1024 July 24, 2025 03:54
Signed-off-by: 童剑 <1045931706@qq.com>
@bufferflies
Copy link
Contributor Author

/ping @rleungx

@ti-chi-bot ti-chi-bot bot added needs-1-more-lgtm Indicates a PR needs 1 more LGTM. approved labels Jul 30, 2025
@bufferflies
Copy link
Contributor Author

/ping @rleungx

command.NewKeyspaceGroupCommand(),
command.NewKeyspaceCommand(),
command.NewResourceManagerCommand(),
command.NewMsCommand(),
Copy link
Member

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?

Copy link
Contributor Author

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 {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
func (c *TestCluster) GetTsoDefaultSpacePrimaryServer() *tso.Server {
func (c *TestCluster) GetDefaultTSOPrimaryServer() *tso.Server {

Copy link
Contributor Author

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) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
func (c *TestCluster) SetTsoCluster(cluster *TestTSOCluster) {
func (c *TestCluster) SetTSOCluster(cluster *TestTSOCluster) {

Copy link
Contributor Author

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>
Copy link
Member

@rleungx rleungx left a 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>
@ti-chi-bot ti-chi-bot bot added lgtm and removed needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Jul 31, 2025
@ti-chi-bot
Copy link
Contributor

ti-chi-bot bot commented Jul 31, 2025

[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

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot
Copy link
Contributor

ti-chi-bot bot commented Jul 31, 2025

[LGTM Timeline notifier]

Timeline:

  • 2025-07-30 07:00:38.020279654 +0000 UTC m=+74650.705549880: ☑️ agreed by lhy1024.
  • 2025-07-31 07:18:22.477607407 +0000 UTC m=+162115.162877623: ☑️ agreed by rleungx.

Signed-off-by: 童剑 <1045931706@qq.com>
Signed-off-by: 童剑 <1045931706@qq.com>
@ti-chi-bot ti-chi-bot bot merged commit d5d5a03 into tikv:master Jul 31, 2025
31 of 33 checks passed
okJiang pushed a commit to okJiang/pd that referenced this pull request Aug 7, 2025
close tikv#9567

Signed-off-by: 童剑 <1045931706@qq.com>
Signed-off-by: okjiang <819421878@qq.com>
@bufferflies bufferflies added type/cherry-pick-for-release-8.5 This PR is cherry-picked to release-8.5 from a source PR. needs-cherry-pick-release-8.5 Should cherry pick this PR to release-8.5 branch. labels Dec 8, 2025
@ti-chi-bot ti-chi-bot bot removed the type/cherry-pick-for-release-8.5 This PR is cherry-picked to release-8.5 from a source PR. label Dec 8, 2025
@ti-chi-bot
Copy link
Contributor

ti-chi-bot bot commented Dec 8, 2025

@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.

Details

In 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.

ti-chi-bot pushed a commit to ti-chi-bot/pd that referenced this pull request Dec 8, 2025
close tikv#9567

Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
@ti-chi-bot
Copy link
Member

In response to a cherrypick label: new pull request created to branch release-8.5: #10019.
But this PR has conflicts, please resolve them!

ti-chi-bot bot pushed a commit that referenced this pull request Dec 11, 2025
…10019)

close #9567

Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
Signed-off-by: 童剑 <1045931706@qq.com>

Co-authored-by: tongjian <1045931706@qq.com>
Co-authored-by: 童剑 <1045931706@qq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved dco-signoff: yes Indicates the PR's author has signed the dco. lgtm needs-cherry-pick-release-8.5 Should cherry pick this PR to release-8.5 branch. release-note-none Denotes a PR that doesn't merit a release note. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

mcs: support to query the current microservice membership like the pd membership

5 participants