-
Notifications
You must be signed in to change notification settings - Fork 726
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
*: no need to distinguish PD mode #8984
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Ryan Leung <rleungx@gmail.com>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #8984 +/- ##
=======================================
Coverage 76.29% 76.29%
=======================================
Files 465 465
Lines 70539 70542 +3
=======================================
+ Hits 53816 53821 +5
+ Misses 13376 13367 -9
- Partials 3347 3354 +7
Flags with carried forward coverage won't be shown. Click here to find out more. |
server/grpc_service.go
Outdated
@@ -271,8 +271,8 @@ func (s *GrpcServer) GetClusterInfo(context.Context, *pdpb.GetClusterInfoRequest | |||
}, nil | |||
} | |||
|
|||
// GetMinTS implements gRPC PDServer. In PD mode, it simply returns a timestamp. | |||
// In PD service mode, it queries all tso servers and gets the minimum timestamp across | |||
// GetMinTS implements gRPC PDServer. In normal PD, it simply returns a timestamp. |
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.
normal PD?
@@ -404,7 +404,7 @@ func (c *RaftCluster) Start(s Server, bootstrap bool) (err error) { | |||
} | |||
|
|||
func (c *RaftCluster) checkSchedulingService() { | |||
if c.isPDServiceMode { | |||
if c.isKeyspaceGroupEnabled { |
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.
If we only use pd service and scheduling service, is there keyspace group? Keyspace group similiar be about tso only.
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.
See 2e8acc2, I forget to push it lol.
Signed-off-by: Ryan Leung <rleungx@gmail.com>
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: bufferflies, lhy1024 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
[LGTM Timeline notifier]Timeline:
|
@rleungx: Your PR was out of date, I have automatically updated it for you. If the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes. 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. |
What problem does this PR solve?
Issue Number: ref #8477
What is changed and how does it work?
This PR does the following changes:
IsKeyspaceGroupEnabled
to replaceIsPDServiceMode
, they are equivalentCheck List
Tests
Release note