server: advance ServerStart check#8951
Conversation
Signed-off-by: okJiang <819421878@qq.com>
Codecov Report❌ Patch coverage is ❌ Your patch status has failed because the patch coverage (53.84%) is below the target coverage (74.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## master #8951 +/- ##
==========================================
- Coverage 76.34% 76.33% -0.02%
==========================================
Files 465 465
Lines 70537 70547 +10
==========================================
- Hits 53853 53850 -3
- Misses 13344 13356 +12
- Partials 3340 3341 +1
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
| return nil, errs.ErrGRPCRateLimitExceeded(err) | ||
| } | ||
| } | ||
| if s.IsClosed() { |
There was a problem hiding this comment.
maybe placing this check to the head of this function is better?
There was a problem hiding this comment.
Other functions' checking IsClosed() is inside unaryMiddleware. All of the unaryMiddleware is behind Ratelimit component. So here it is consistent with other places.
| } | ||
|
|
||
| // TSO uses leader lease to determine validity. No need to check leader here. | ||
| if s.IsClosed() { |
Signed-off-by: okJiang <819421878@qq.com>
Signed-off-by: okJiang <819421878@qq.com>
Signed-off-by: okJiang <819421878@qq.com>
|
/retest |
|
ping @bufferflies |
| return nil, errs.ErrGRPCRateLimitExceeded(err) | ||
| } | ||
| } | ||
| if s.IsClosed() { |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bufferflies, 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 |
[LGTM Timeline notifier]Timeline:
|
|
In response to a cherrypick label: new pull request created to branch |
|
In response to a cherrypick label: new pull request created to branch |
|
In response to a cherrypick label: new pull request created to branch |
|
In response to a cherrypick label: new pull request created to branch |
What problem does this PR solve?
Issue Number: Close #8950
What is changed and how does it work?
Check List
Tests
Release note