Skip to content

Conversation

@fqazi
Copy link
Collaborator

@fqazi fqazi commented Dec 22, 2025

Backport 1/1 commits from #160018 on behalf of @fqazi.


Previously, we would use WaitForOneVersion after grant statements, which would guarantee, and transaction that follows would hit two version invariant errors if the prior version was in use. When we switched these operations to WaitForNewVersion, we can no longer guarantee the next transaction will hit a retry error, if the old version is still in use. This patch, adds logic to wait for a single version in grant_in_txn to avoid the flake.

Fixes: #158417

Release note: None


Release justification: test only change

Previously, we would use WaitForOneVersion after grant statements, which
would guarantee, and transaction that follows would hit two version
invariant errors if the prior version was in use. When we switched these
operations to WaitForNewVersion, we can no longer guarantee the next
transaction will hit a retry error, if the old version is still in use.
This patch, adds logic to wait for a single version in grant_in_txn to
avoid the flake.

Fixes: cockroachdb#158417

Release note: None
@fqazi fqazi force-pushed the blathers/backport-release-25.4-160018 branch from cd84903 to 4ace972 Compare December 22, 2025 22:16
@blathers-crl blathers-crl bot added blathers-backport This is a backport that Blathers created automatically. O-robot Originated from a bot. labels Dec 22, 2025
@blathers-crl blathers-crl bot requested a review from rafiss December 22, 2025 22:16
@blathers-crl
Copy link

blathers-crl bot commented Dec 22, 2025

Thanks for opening a backport.

Before merging, please confirm that the change does not break backwards compatibility and otherwise complies with the backport policy. Include a brief release justification in the PR description explaining why the backport is appropriate. All backports must be reviewed by the TL for the owning area. While the stricter LTS policy does not yet apply, please exercise judgment and consider gating non-critical changes behind a disabled-by-default feature flag when appropriate.

@blathers-crl blathers-crl bot added backport Label PR's that are backports to older release branches T-sql-foundations SQL Foundations Team (formerly SQL Schema + SQL Sessions) labels Dec 22, 2025
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@blathers-crl blathers-crl bot added backport-failed backport-test-only Used to denote the backport has only non-production changes and removed backport-failed labels Dec 22, 2025
@fqazi fqazi merged commit 0480b16 into cockroachdb:release-25.4 Dec 23, 2025
17 of 26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport Label PR's that are backports to older release branches backport-test-only Used to denote the backport has only non-production changes blathers-backport This is a backport that Blathers created automatically. O-robot Originated from a bot. T-sql-foundations SQL Foundations Team (formerly SQL Schema + SQL Sessions) target-release-25.4.3

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants