-
Notifications
You must be signed in to change notification settings - Fork 725
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
*: unify the gRPC errors #8910
*: unify the gRPC errors #8910
Conversation
@@ -589,19 +570,18 @@ func (s *GrpcServer) Tso(stream pdpb.PD_TsoServer) error { | |||
start := time.Now() | |||
// TSO uses leader lease to determine validity. No need to check leader here. | |||
if s.IsClosed() { | |||
return status.Errorf(codes.Unknown, "server not started") |
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.
Here I change the status code to Unavailable, the same as other places.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #8910 +/- ##
==========================================
- Coverage 76.28% 76.24% -0.04%
==========================================
Files 462 463 +1
Lines 70447 70452 +5
==========================================
- Hits 53741 53718 -23
- Misses 13362 13382 +20
- Partials 3344 3352 +8
Flags with carried forward coverage won't be shown. Click here to find out more. |
Signed-off-by: Ryan Leung <[email protected]>
Signed-off-by: Ryan Leung <[email protected]>
Signed-off-by: Ryan Leung <[email protected]>
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: JmPotato, okJiang 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 |
Signed-off-by: Ryan Leung <[email protected]>
What problem does this PR solve?
Issue Number: Ref #8922
What is changed and how does it work?
Check List
Tests
Release note