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
Support vtctl OnlineDDL <keyspace> show <context>
#7145
Merged
shlomi-noach
merged 7 commits into
vitessio:master
from
planetscale:online-ddl-show-context
Dec 22, 2020
Merged
Support vtctl OnlineDDL <keyspace> show <context>
#7145
shlomi-noach
merged 7 commits into
vitessio:master
from
planetscale:online-ddl-show-context
Dec 22, 2020
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
…ontext Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Actually there's a SQL injection case here; I need to parse/bind the query first. |
…ontext Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.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>
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
I added a new convenience function in func ParseAndBind(in string, binds ...*querypb.BindVariable) (query string, err error) which allows for quickly creating a binded query, e.g.: query, err := ParseAndBind("select * from tbl where name=%a", sqltypes.StringBindVariable("it's me")) And with that I fixed SQL injection concerns in |
shlomi-noach
requested review from
ajm188,
doeg,
harshit-gangal and
systay
as code owners
December 21, 2020 08:48
ajm188
reviewed
Dec 21, 2020
ajm188
approved these changes
Dec 22, 2020
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Backport
NO
Status
DRAFT
Description
This adds support for
vtctl OnlineDDL <keyspace> show <context>
, to show all migrations that share the same context. For example, someone runsvtctl ApplySchema -ddl_strategy "gh-ost" -sql "multiple; queries; here;"
Each DDL query in the above gets its own UUID, the migration ID used for tracking that migration. But also, all of the migrations in that command have the same migration context, some arbitrary string that identifies them.
BTW
vtctl ApplySchema...
does not actually return that migration context (yet?). It's known internally to whatever service issued the migration, and can be used to track status for those migrations as a whole. We may expose the migration context to the user in the future.Related Issue(s)
#6926 (comment)
followup to #7082
Todos
Impacted Areas in Vitess
List general components of the application that this PR will affect: