-
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 issue with truncate table and partitions and tiflash #42957
ddl: Fix issue with truncate table and partitions and tiflash #42957
Conversation
Allocate the table ids at once already in the DDL query session and send them to the ddl worker.
[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. |
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.
Rest 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
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 0e9e0f5
|
/test mysql-test |
/retest |
4 similar comments
/retest |
/retest |
/retest |
/retest |
/retest |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 10c50c9
|
In response to a cherrypick label: new pull request created to branch |
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
In response to a cherrypick label: failed to apply #42957 on top of branch "release-6.5":
|
In response to a cherrypick label: new pull request created to branch |
@mjonss: The following test failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
Allocate the table ids at once already in the DDL query session and send them to the ddl worker.
What problem does this PR solve?
Issue Number: close #42940
Problem Summary:
What is changed and how it works?
Check List
Tests
Manual test:
Build the tidb binary
Start a playground cluster with
Run the prepare step:
Wait to the TiFlash replicas are available:
Then just run
truncate table t
over and over again and check the tidb.log for 'handle ddl job failed'Without the fix it comes within a few truncate tables
With the fix it did not show up after 10+ truncate tables
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.