-
Notifications
You must be signed in to change notification settings - Fork 283
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
Conversation
[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. |
/run-leak-tests |
/run-leak-tests |
/run-verify |
/run-check-issue-triage-complete |
/check-issue-triage-complete |
/run-integration-test /tidb=pr/32434 |
/run-integration-test /tidb=pr/32434 |
Signed-off-by: ti-chi-bot <[email protected]>
In response to a cherrypick label: new pull request created: #4679. |
Signed-off-by: ti-chi-bot <[email protected]>
In response to a cherrypick label: new pull request created: #4680. |
Signed-off-by: ti-chi-bot <[email protected]>
In response to a cherrypick label: new pull request created: #4681. |
In response to a cherrypick label: new pull request created: #4682. |
In response to a cherrypick label: new pull request created: #4683. |
Signed-off-by: ti-chi-bot <[email protected]>
In response to a cherrypick label: new pull request created: #4684. |
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