Skip to content
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

[8.0] OnlineDDL bugfix: make sure schema is applied on tablet #6909

Merged

Conversation

shlomi-noach
Copy link
Contributor

This fixes a bug where the master tablet may be read_only when attempting to apply the online DDL schema (_vt.schema_migrations table).

With this PR we ensure schema is deployed before any online DDL operation.

It's noteworthy that we move away from WithDDL, which was meant to solve this exact problem, but is not strict enough. For this PR, we choose a smaller fix, but later on we may want to improve upon WithDDL.

This should be merged in 8.0.

Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
@shlomi-noach shlomi-noach requested a review from a team October 20, 2020 07:12
@deepthi deepthi changed the title OnlineDDL bugfix: make sure schema is applied on tablet [8.0] OnlineDDL bugfix: make sure schema is applied on tablet Oct 22, 2020
@deepthi deepthi added this to the v8.0 milestone Oct 22, 2020
@sougou sougou merged commit 128718a into vitessio:release-8.0 Oct 22, 2020
@shlomi-noach shlomi-noach deleted the online-ddl-schema-apply-release-80 branch October 22, 2020 05:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants