-
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
client: retry checkServiceModeChanged to make tso client work normal #8963
Conversation
Signed-off-by: okJiang <[email protected]>
/retest |
2 similar comments
/retest |
/retest |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #8963 +/- ##
==========================================
+ Coverage 76.31% 76.33% +0.02%
==========================================
Files 465 465
Lines 70547 70548 +1
==========================================
+ Hits 53839 53856 +17
+ Misses 13361 13344 -17
- Partials 3347 3348 +1
Flags with carried forward coverage won't be shown. Click here to find out more. |
if err := c.checkServiceModeChanged(); err != nil { | ||
log.Warn("[pd] failed to check service mode and will check later", zap.Error(err)) | ||
if err := c.initRetry(c.checkServiceModeChanged); err != nil { | ||
return err |
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.
One more thing, we need to handle cancel properly.
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.
which cancel
?
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 line 499 and line 495, but I find the caller will also call cancel.
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.
Added 81261bd
Signed-off-by: okJiang <[email protected]>
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: JmPotato, rleungx 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 |
/retest |
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 |
close tikv#8962 Signed-off-by: ti-chi-bot <[email protected]>
…8963) (#8975) close #8962 Signed-off-by: okJiang <[email protected]> Co-authored-by: okJiang <[email protected]>
…8963) (#8976) close #8962 Signed-off-by: ti-chi-bot <[email protected]> Signed-off-by: okJiang <[email protected]> Co-authored-by: okJiang <[email protected]>
…8963) (#8974) close #8962 Signed-off-by: okJiang <[email protected]> Co-authored-by: okJiang <[email protected]> Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
What problem does this PR solve?
Issue Number: Close #8962
What is changed and how does it work?
Check List
Tests
Release note