-
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
Truncate partition with global index blocks inserts also during delete reorganization state #55819
Labels
type/enhancement
The issue or PR belongs to an enhancement.
Comments
mjonss
added a commit
to mjonss/tidb
that referenced
this issue
Sep 3, 2024
13 tasks
13 tasks
13 tasks
ti-chi-bot
pushed a commit
to ti-chi-bot/tidb
that referenced
this issue
Oct 25, 2024
13 tasks
mjonss
added a commit
to mjonss/tidb
that referenced
this issue
Nov 26, 2024
mjonss
added a commit
to mjonss/tidb
that referenced
this issue
Nov 26, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Enhancement
ALTER TABLE t TRUNCATE PARTITION will block inserts to the truncated partition during both "delete only" and "delete reorganization" regardless if there is a duplicate key or not.
How to test:
I would expect that during "delete reorganize" state, which can take a long time if the partition was big, that inserts/updates/deletes would work without errors (not even duplicate key errors).
During the first schema state "delete only" I would accept that "duplicate key" errors were given.
The text was updated successfully, but these errors were encountered: