Skip to content

sql: block survival goal and primary region changes during RBR transitions#167475

Draft
shghasemi wants to merge 1 commit intocockroachdb:masterfrom
shghasemi:block-rbr-region-change
Draft

sql: block survival goal and primary region changes during RBR transitions#167475
shghasemi wants to merge 1 commit intocockroachdb:masterfrom
shghasemi:block-rbr-region-change

Conversation

@shghasemi
Copy link
Copy Markdown
Contributor

Previously, ALTER DATABASE SURVIVE and ALTER DATABASE PRIMARY REGION did not check for in-flight REGIONAL BY ROW transitions on tables in the database. This could cause a race where the async locality change changer reads a stale survival goal and writes partition zone configs with incorrect NumReplicas, leading to zone config validation failures.

Fixes #167454

Release note: None

…tions

Previously, ALTER DATABASE SURVIVE and ALTER DATABASE PRIMARY REGION
did not check for in-flight REGIONAL BY ROW transitions on tables in
the database. This could cause a race where the async locality change
changer reads a stale survival goal and writes partition zone configs
with incorrect NumReplicas, leading to zone config validation failures.

Fixes cockroachdb#167454

Release note: None
@trunk-io
Copy link
Copy Markdown
Contributor

trunk-io bot commented Apr 3, 2026

Merging to master in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here

@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

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.

Block concurrent RBR locality changes and database survival goal changes

2 participants