-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
v15 backport: Onlineddl: formalize "immediate operations", respect --postpone-completion strategy flag #13832
v15 backport: Onlineddl: formalize "immediate operations", respect --postpone-completion strategy flag #13832
Conversation
…letion` strategy flag (vitessio#11910) * Added endtoend test to validate postponed REVERT of an ALTER VIEW statement: test indicates a bug Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * ALTER VIEW now respects --postpone-completion flag Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * Online DDL: formalize 'immediate operations', respect --postpone-completion Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * typo Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * only test instant ddl in capable versions (ie 8.0) Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * more specific instant ddl capability Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * Update go/vt/vttablet/onlineddl/executor.go Co-authored-by: Deepthi Sigireddi <deepthi.sigireddi@gmail.com> Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * Update go/vt/vttablet/onlineddl/executor.go Co-authored-by: Deepthi Sigireddi <deepthi.sigireddi@gmail.com> Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * Update go/vt/vttablet/onlineddl/executor.go Co-authored-by: Deepthi Sigireddi <deepthi.sigireddi@gmail.com> Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> Co-authored-by: Deepthi Sigireddi <deepthi.sigireddi@gmail.com>
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
|
Hmmm seems like |
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.
approved!
Co-authored-by: Andrew Mason <amason@hey.com> Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
vtgate's not starting in Cluster (onlineddl_vrepl_stress_suite): maybe a new flag specified in the test, but not in v15?
|
…tests '--prefer-instant-ddl', a functionality that was not backported to v15 Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
I meanwhile pushed a fix to the failing |
Yep, getting that |
There's nothing in this backport to affect flags, and really nothing to affect |
looks like unrelated flakiness. Tests passing now. |
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
This is a backport of #11910 into v15
#11910 was merged
Dec 2022
, but still did not make it tov15
. This bugfix is important and since we still supportv15
it should be backported.Description
This PR formalizes what "immediate operations" are:
Immediate operations are ones that can be performed within a split second, or rather, do not require long
running processes. Immediate operations are:
Non immediate operations are:
In #11898 we find that
ALTER VIEW
and instant DDLs do not respect--postpone-completion
. This PR solves that for both, and all other, cases. Any "immediate operation" now respects that flag, including REVERTs of such operations.endtoend
tests added to cover cases.Related Issue(s)
Fixes #11898
This PR supersedes and replaces #11899
#6926
Checklist
Deployment Notes