-
Notifications
You must be signed in to change notification settings - Fork 727
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
*: no need to distinguish PD mode #8984
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>
[LGTM Timeline notifier]Timeline:
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bufferflies, lhy1024, niubell The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
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