Skip to content

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

Merged
sougou merged 1 commit intovitessio:release-8.0from
planetscale:online-ddl-schema-apply-release-80
Oct 22, 2020
Merged

[8.0] OnlineDDL bugfix: make sure schema is applied on tablet#6909
sougou merged 1 commit intovitessio:release-8.0from
planetscale:online-ddl-schema-apply-release-80

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 sougou as a code owner October 20, 2020 07:12
@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.

3 participants