-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Query buffering, terminating blocking transactions for INSTANT
DDL and other "special plans"
#17945
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
Query buffering, terminating blocking transactions for INSTANT
DDL and other "special plans"
#17945
Conversation
Signed-off-by: Shlomi Noach <[email protected]>
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Tests
Documentation
New flags
If a workflow is added or modified:
Backward compatibility
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #17945 +/- ##
==========================================
- Coverage 67.56% 67.54% -0.03%
==========================================
Files 1597 1597
Lines 259763 259849 +86
==========================================
+ Hits 175506 175507 +1
- Misses 84257 84342 +85 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Documentation PR: vitessio/website#1990 |
Description
Fixes #17944
This PR introduces query buffering and forced query/transaction termination for special plan operations, which at this time include
INSTANT
DDL and range partition rotation.--prefer-instant-ddl
strategy flag is supplied, or is found to be a range partition rotation change)--force-cut-over-duration
flag is nonzero, and irrespective of its value, we also issue a one time termination for queries and transactions holding locks or metadata locks on the migrated table, just before issuing theALTER TABLE
statement.In the future we may also consider terminating queries/transactions while a migration is being stalled.
Related Issue(s)
#17944
Documentation: vitessio/website#1990
Checklist
Deployment Notes