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 panic due to missing schema #88568

Merged
merged 1 commit into from
Sep 23, 2022

Conversation

ajwerner
Copy link
Contributor

A schema might not exist because it has been dropped. We need to mark the lookup as required.

Fixes #87895

Release note (bug fix): Fixed a bug in pg_catalog tables which could result in an internal error if a schema is concurrently dropped.

@ajwerner ajwerner requested a review from a team September 23, 2022 14:49
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@ajwerner ajwerner requested a review from a team September 23, 2022 16:07
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_strong:

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

@ajwerner
Copy link
Contributor Author

TFTR!

bors r+

A schema might not exist because it has been dropped. We need to mark the
lookup as required.

Fixes cockroachdb#87895

Release note (bug fix): Fixed a bug in pg_catalog tables which could result in
an internal error if a schema is concurrently dropped.
@ajwerner ajwerner force-pushed the ajwerner/fix-panic-in-vtable branch from 143c5f8 to 5ae96bd Compare September 23, 2022 17:11
@craig
Copy link
Contributor

craig bot commented Sep 23, 2022

Canceled.

@ajwerner
Copy link
Contributor Author

bors r+

@craig
Copy link
Contributor

craig bot commented Sep 23, 2022

Build succeeded:

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.

sql: v22.1.5: nil schema descriptor returned by GetImmutableSchemaByID
3 participants