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

sql: fix error with DROP VALUE and DROP SCHEMA in same txn #123562

Merged
merged 1 commit into from
May 3, 2024

Conversation

rafiss
Copy link
Collaborator

@rafiss rafiss commented May 3, 2024

fixes #123539
fixes #123488
fixes #121828
fixes #122785

Release note (bug fix): Fixed a bug that would occur when ALTER TYPE ... DROP VALUE is followed by DROP SCHEMA CASCADE ... in the same transaction. Previously, the ALTER TYPE schema change would get queued up to run at commit time, but by that point, the type may have already been removed, so the commit could fail. This is fixed now.

@rafiss rafiss added backport-23.2.x Flags PRs that need to be backported to 23.2. backport-24.1.x Flags PRs that need to be backported to 24.1. backport-23.2.5-rc backport-24.1.0-rc FROZEN: requires AlexL's approval via #db-backports-24-1-0-release labels May 3, 2024
@rafiss rafiss requested a review from fqazi May 3, 2024 15:42
@rafiss rafiss requested a review from a team as a code owner May 3, 2024 15:42
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Release note (bug fix): Fixed a bug that would occur when `ALTER TYPE ...
DROP VALUE` is followed by `DROP SCHEMA CASCADE ...` in the same
transaction. Previously, the `ALTER TYPE` schema change would get queued
up to run at commit time, but by that point, the type may have already
been removed, so the commit could fail. This is fixed now.
@rafiss rafiss force-pushed the fix-drop-value-drop-schema branch from bca824d to dc0816e Compare May 3, 2024 15:51
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:

Reviewed 3 of 3 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @rafiss)

@rafiss
Copy link
Collaborator Author

rafiss commented May 3, 2024

tftr!

bors r+

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment