ddl: fix ddl hang over when it meets panic in cancelling path#23204
ddl: fix ddl hang over when it meets panic in cancelling path#23204ti-chi-bot merged 18 commits intopingcap:masterfrom
Conversation
|
/lgtm |
Signed-off-by: ailinkid <314806019@qq.com>
Signed-off-by: ailinkid <314806019@qq.com>
e65d4fb to
7a48c9d
Compare
|
/merge |
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.
It seems that we should return here directly.
|
/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. DetailsReviewer can indicate their review by writing |
|
/merge |
|
This pull request has been accepted and is ready to merge. DetailsCommit hash: 19abb34 |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
|
cherry pick to release-4.0 in PR #23297 |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
|
cherry pick to release-5.0-rc in PR #23298 |
Signed-off-by: ailinkid 314806019@qq.com
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