-
Notifications
You must be signed in to change notification settings - Fork 287
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
pkg/workerpool(cdc): fix race between handling error and unregistering handler (#4605) #4682
pkg/workerpool(cdc): fix race between handling error and unregistering handler (#4605) #4682
Conversation
[REVIEW NOTIFICATION] This pull request has not been approved. 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. |
/run-integration-tests |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 5398795
|
Codecov Report
@@ Coverage Diff @@
## release-5.3 #4682 +/- ##
================================================
Coverage ? 55.6407%
================================================
Files ? 224
Lines ? 23880
Branches ? 0
================================================
Hits ? 13287
Misses ? 9264
Partials ? 1329 |
This is an automated cherry-pick of #4605
What problem does this PR solve?
Issue Number: close #4447
What is changed and how it works?
pkg/workerpool
. The root cause is that, if an error has already caused a handler to be automatically unregistered,Unregister()
will return immediately, regardless of whether the error handler has returned. This has caused race in unified sorter.Check List
Tests
Side effects
Related changes
Release note