Skip to content

scbuildstmt: added cluster version gating for declarative schema changer#86604

Merged
craig[bot] merged 2 commits intocockroachdb:masterfrom
Xiang-Gu:version_gating_ddl_stmt_between_22_1_and_22_2
Aug 25, 2022
Merged

scbuildstmt: added cluster version gating for declarative schema changer#86604
craig[bot] merged 2 commits intocockroachdb:masterfrom
Xiang-Gu:version_gating_ddl_stmt_between_22_1_and_22_2

Conversation

@Xiang-Gu
Copy link
Copy Markdown
Contributor

@Xiang-Gu Xiang-Gu commented Aug 22, 2022

For each implemented DDL stmt in the new schema changer, we added a
minimal supported cluster version so that we can return an unimplemented
error when the cluster version is lower than the minimal supported
cluster version of that DDL statement.

This will be useful in mixed-version cluster where we make sure we don't
use new schema changer for statements that are only supported in v22.2,
but not in v22.1.

Partially fix #79840

Release justification: improve safety and prevent issues in
mixed-version cluster.

Release note: None

@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@Xiang-Gu Xiang-Gu force-pushed the version_gating_ddl_stmt_between_22_1_and_22_2 branch from 58a1ac8 to 809fc14 Compare August 22, 2022 20:31
Copy link
Copy Markdown
Contributor

@ajwerner ajwerner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm: Can you associate this with the issue?

Reviewed 1 of 1 files at r1, 2 of 5 files at r2, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @ajwerner)

This check is redundant with what follows it.
For each implemented DDL stmt in the new schema changer, we added a
minimal supported cluster version so that we can return an unimplemented
error when the cluster version is lower than the minimal supported
cluster version of that DDL statement.

This will be useful in mixed-version cluster where we make sure we don't
use new schema changer for statements that are only supported in v22.2,
but not in v22.1.

Release justification: improve safety and prevent issues in
mixed-version cluster.

Release note: None
@Xiang-Gu Xiang-Gu force-pushed the version_gating_ddl_stmt_between_22_1_and_22_2 branch from 809fc14 to af1b9c4 Compare August 23, 2022 14:54
@Xiang-Gu Xiang-Gu marked this pull request as ready for review August 23, 2022 14:57
@Xiang-Gu Xiang-Gu requested a review from a team August 23, 2022 14:57
@ajwerner
Copy link
Copy Markdown
Contributor

still LGTM

@Xiang-Gu
Copy link
Copy Markdown
Contributor Author

TFTR!

bors r+

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Aug 24, 2022

Build failed (retrying...):

@craig craig bot merged commit 2787ff1 into cockroachdb:master Aug 25, 2022
@craig
Copy link
Copy Markdown
Contributor

craig bot commented Aug 25, 2022

Build succeeded:

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.

sql/schemachanger/scbuild: ensure proper version gating for mixed-version state

3 participants