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: Don't require override for multiple MR abstractions in a transaction #62518

Merged
merged 1 commit into from
Mar 24, 2021

Conversation

ajstorm
Copy link
Collaborator

@ajstorm ajstorm commented Mar 24, 2021

Backport 1/1 commits from #62354.

/cc @cockroachdb/release


Previously, we required override_multi_region_zone_config to be
specified if multiple add/drop region operations were included in a
single transaction. This was due to the fact that the RegionConfig
would get updated as part of the first operation, but the zone
configurations to which we were comparing were not updated until the
transaction committed. This issue was fixed in part by #62200, but this
PR finishes the job by creating a function which synthesizes a zone
configuration which presents the state of the RegionConfig at the
beginning of the transaction.

Resolves: #61551

Release note: None

@ajstorm ajstorm requested a review from arulajmani March 24, 2021 11:46
@cockroach-teamcity
Copy link
Member

This change is Reviewable

…tion

Previously, we required override_multi_region_zone_config to be
specified if multiple add/drop region operations were included in a
single transaction. This was due to the fact that the RegionConfig
would get updated as part of the first operation, but the zone
configurations to which we were comparing were not updated until the
transaction committed. This issue was fixed in part by cockroachdb#62200, but this
PR finishes the job by creating a function which synthesizes a zone
configuration which presents the state of the RegionConfig at the
beginning of the transaction.

Release note: None
@ajstorm ajstorm merged commit a877b96 into cockroachdb:release-21.1 Mar 24, 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.

3 participants