Skip to content

restore 'vtctl VExec' command, remove Onlind DDL VExec functionality: v12 backport#9225

Closed
shlomi-noach wants to merge 2 commits intovitessio:release-12.0from
planetscale:restore-vexec-for-non-online-ddl-v12
Closed

restore 'vtctl VExec' command, remove Onlind DDL VExec functionality: v12 backport#9225
shlomi-noach wants to merge 2 commits intovitessio:release-12.0from
planetscale:restore-vexec-for-non-online-ddl-v12

Conversation

@shlomi-noach
Copy link
Copy Markdown
Contributor

@shlomi-noach shlomi-noach commented Nov 14, 2021

Description

Fixes #9193
Followup to #8972

This PR restores vtctl VExec functionality. It was removed based on the assumption the only uses for this command were for Online DDL command. This was wrong, and VExec is also used as a wrapper around VReplication.

This PR now re-enabled vtctl VExec, but then strips out any Online DDL -specific logic from VExec. This means removing the schema_migrations table references, planner, templates; demoting onlineddl.Executor from being a VExec-utor, and removing some boilerplate code.

This is the backport for release-12.0

Checklist

  • Should this PR be backported?
  • Tests were added or are not required
  • Documentation was added or is not required

cc @deepthi @hallaroo

Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
@shlomi-noach
Copy link
Copy Markdown
Contributor Author

Heh. Not so fast. vtctl ApplySchema still relies on VExec. Looking into.

Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
@shlomi-noach
Copy link
Copy Markdown
Contributor Author

OK, further dependency resolved.

shlomi-noach added a commit to vitessio/website that referenced this pull request Nov 14, 2021
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
@shlomi-noach
Copy link
Copy Markdown
Contributor Author

Ugh sorry, yet another dependency in vtctl OnlineDDL ... show ... command. Resolving, and meanwhile marking as draft.

@shlomi-noach
Copy link
Copy Markdown
Contributor Author

For now I'm going to close this PR and create a new PR which merely reverts #8972, until I figure out the best way to deprecate VExec/OnlineDDL.

@shlomi-noach shlomi-noach deleted the restore-vexec-for-non-online-ddl-v12 branch November 14, 2021 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Backport This is a backport Component: Cluster management Component: VReplication release notes (needs details) This PR needs to be listed in the release notes in a dedicated section (deprecation notice, etc...) Type: Bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant