Skip to content

Conversation

@rafiss
Copy link
Collaborator

@rafiss rafiss commented Nov 14, 2025

Backport 1/1 commits from #157834 on behalf of @rafiss.


Previously, if a rollback dropped a constraint due to a FK validation error, it would never update the RBRUsingConstraint field even if the constraint being rolled back was referenced by that field.

Now the field is cleared properly when needed.

fixes #157832

Release note (bug fix): Fixed a bug that could cause a schema change to be stuck in the reverting state if the infer_rbr_region_col_using_constraint storage parameter was being set at the same time as adding a constraint that had a foreign key violation.


Release justification: fixes a bug that could cause a job to hang, for a feature that is gated behind a cluster setting

Previously, if a rollback dropped a constraint due to a FK validation
error, it would never update the RBRUsingConstraint field even if the
constraint being rolled back was referenced by that field.

Now the field is cleared properly when needed.

Release note (bug fix): Fixed a bug that could cause a schema change to
be stuck in the reverting state if the infer_rbr_region_col_using_constraint
storage parameter was being set at the same time as adding a constraint
that had a foreign key violation.
@rafiss rafiss requested a review from a team as a code owner November 14, 2025 18:25
@rafiss rafiss force-pushed the blathers/backport-release-25.3-157834 branch from 6b57368 to 428d2e6 Compare November 14, 2025 18:25
@blathers-crl blathers-crl bot added blathers-backport This is a backport that Blathers created automatically. O-robot Originated from a bot. labels Nov 14, 2025
@blathers-crl blathers-crl bot requested review from DrewKimball and fqazi November 14, 2025 18:25
@blathers-crl
Copy link

blathers-crl bot commented Nov 14, 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 Nov 14, 2025
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Collaborator

@fqazi fqazi left a comment

Choose a reason for hiding this comment

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

:lgtm:

@fqazi reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @DrewKimball)

@rafiss rafiss merged commit 08bc10f into cockroachdb:release-25.3 Nov 15, 2025
15 checks passed
@rafiss rafiss deleted the blathers/backport-release-25.3-157834 branch November 16, 2025 07:32
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 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.3.6

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants