-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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 parallel execution of "drop DB" and other DDL issue #17566
Conversation
Codecov Report
@@ Coverage Diff @@
## master #17566 +/- ##
===========================================
Coverage 79.4684% 79.4684%
===========================================
Files 520 520
Lines 140204 140204
===========================================
Hits 111418 111418
Misses 19805 19805
Partials 8981 8981 |
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
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
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
/run-all-tests |
/run-all-tests |
@zimulala merge failed. |
/run-all-tests |
Signed-off-by: sre-bot <sre-bot@pingcap.com>
cherry pick to release-3.0 in PR #17657 |
Signed-off-by: sre-bot <sre-bot@pingcap.com>
cherry pick to release-3.1 in PR #17658 |
Signed-off-by: sre-bot <sre-bot@pingcap.com>
cherry pick to release-4.0 in PR #17659 |
What problem does this PR solve?
Issue Number: close #17565
Problem Summary:
Parallel execution of "drop database" and other DDL (such as "alter database") may cause panic.
Because we don't check the return value in
GetDatabase
in the background.What is changed and how it works?
What's Changed:
How it Works:
After executing
GetDatabase
, we need to check whether the return value is nil.Related changes
Check List
Tests
Side effects
Release note