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

release-21.1: sql: fix dropping zone configs from REGIONAL BY ROW during failure #63274

Merged

Conversation

otan
Copy link
Contributor

@otan otan commented Apr 8, 2021

Backport 1/1 commits from #63200.

/cc @cockroachdb/release


Also added some more useful error messaging + fixed validation to use
NonDropIndexes as Active, which is in line with how the ApplyOption
function works.

Resolves: #63201

Release note (bug fix): Fix a bug where REGIONAL BY ROW zone configs
were dropped before REGIONAL BY ROW changes are finalised. This causes a
bug when the REGIONAL BY ROW transformation fail.

Also added some more useful error messaging + fixed validation to use
NonDropIndexes as Active, which is in line with how the ApplyOption
function works.

Also refactored the placeholder zone config logic when deleting the last
subzone to work in the new world.

Release note (bug fix): Fix a bug where REGIONAL BY ROW zone configs
were dropped before REGIONAL BY ROW changes are finalised. This causes a
bug when the REGIONAL BY ROW transformation fail.
@otan otan requested a review from ajstorm April 8, 2021 04:48
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@ajstorm ajstorm merged commit 49eeaf8 into cockroachdb:release-21.1 Apr 8, 2021
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