-
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
syncer: exit watch leader immediately (#8824) #8828
syncer: exit watch leader immediately (#8824) #8828
Conversation
close tikv#8823 Signed-off-by: ti-chi-bot <[email protected]>
Signed-off-by: Ryan Leung <[email protected]>
5f9c7c8
to
87d386b
Compare
case <-ctx.Done(): | ||
log.Info("stop synchronizing with leader due to context canceled") | ||
return | ||
case <-time.After(retryInterval): |
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.
maybe timer is safer?
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.
After discussion, #8901 will fix it.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lhy1024, nolouch 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 |
/hold |
/hold cancel |
This is an automated cherry-pick of #8824
What problem does this PR solve?
Issue Number: Close #8823
What is changed and how does it work?
Check List
Tests
Release note