-
Notifications
You must be signed in to change notification settings - Fork 289
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
cdc: drain waits for owner resign and table move out #6110
cdc: drain waits for owner resign and table move out #6110
Conversation
Signed-off-by: Neil Shen <[email protected]>
Signed-off-by: Neil Shen <[email protected]>
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
Codecov Report
Flags with carried forward coverage won't be shown. Click here to find out more. @@ Coverage Diff @@
## fb/latency #6110 +/- ##
===============================================
Coverage ? 57.0819%
===============================================
Files ? 541
Lines ? 72240
Branches ? 0
===============================================
Hits ? 41236
Misses ? 27205
Partials ? 3799 |
@hicqu: Thanks for your review. The bot only counts approvals from reviewers and higher roles in list, but you're still welcome to leave your comments. In response to this: Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
done := make(chan struct{}) | ||
close(done) | ||
go func() { | ||
defer close(done) |
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.
how about groups 2 defer
together
@@ -76,7 +89,14 @@ func (d *drainCaptureScheduler) Schedule( | |||
defer d.mu.Unlock() | |||
|
|||
if d.target == captureIDNotDraining { | |||
return nil | |||
stopping := checkStoppingCapture(captures) |
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.
how about add a comment to make others know that target
can be set by signal.
rest LGTM |
Signed-off-by: Neil Shen <[email protected]>
cc17691
to
c21b7fa
Compare
/run-all-tests |
/run-all-tests |
fa39335
to
e859b10
Compare
/run-all-tests |
Signed-off-by: Neil Shen <[email protected]>
e859b10
to
30bd15d
Compare
What problem does this PR solve?
Issue Number: ref #4757
What is changed and how it works?
Drain TiCDC ownership and tables before shutdown.
Tests show there is no (or little) latency when a TiCDC shutdown.
Check List
Tests
Run sysbench
Questions
Will it cause performance regression or break compatibility?
Do you need to update user documentation, design documentation or monitoring documentation?
Release note