-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
ddl: fix ddl hang over when it meets panic in cancelling path #23204
Conversation
/lgtm |
Signed-off-by: ailinkid <[email protected]>
Signed-off-by: ailinkid <[email protected]>
e65d4fb
to
7a48c9d
Compare
Signed-off-by: ailinkid <[email protected]>
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.
/lgtm
/merge |
Signed-off-by: ailinkid <[email protected]>
Signed-off-by: ailinkid <[email protected]>
ddl/ddl_worker.go
Outdated
// If job is cancelled, we shouldn't return an error and shouldn't load DDL variables. | ||
if job.State == model.JobStateCancelled { | ||
logutil.Logger(w.logCtx).Info("[ddl] DDL job is cancelled normally", zap.Error(err)) | ||
err = nil |
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.
It seems that we should return here directly.
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.
good catch
Signed-off-by: ailinkid <[email protected]>
/LGTM |
/lgtm |
[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 writing |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 19abb34
|
Signed-off-by: ti-srebot <[email protected]>
cherry pick to release-4.0 in PR #23297 |
Signed-off-by: ti-srebot <[email protected]>
cherry pick to release-5.0-rc in PR #23298 |
Signed-off-by: ailinkid [email protected]
What problem does this PR solve?
Issue Number: close #23202
What is changed and how it works?
What's Changed:
record the error count when the goroutine restored from panic.
Check List
Tests
Release note