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

colexecerror: catch panics from packages in sql/sem folder #62889

Merged
merged 1 commit into from
Mar 31, 2021

Conversation

yuzefovich
Copy link
Member

Previously, we would only catch panics from sql/sem/tree package.
Recently sqlsmith encountered a crash because of a panic in
sql/sem/builtins package, and I believe it is reasonable to catch
panics from that package as well as from sql/sem/transform, so we will
now be catching based on sql/sem prefix.

Addresses: #62846.

Release note: None

@yuzefovich yuzefovich requested review from jordanlewis and a team March 31, 2021 18:53
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Member

@jordanlewis jordanlewis left a comment

Choose a reason for hiding this comment

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

:lgtm:

I think the key attribute of these packages is that they are stateless. Can you add a comment above the package exclusions explaining why they are safe to panic-catch?

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained

Previously, we would only catch panics from `sql/sem/tree` package.
Recently sqlsmith encountered a crash because of a panic in
`sql/sem/builtins` package, and I believe it is reasonable to catch
panics from that package as well as from `sql/sem/transform`, so we will
now be catching based on `sql/sem` prefix.

Release note: None
@yuzefovich
Copy link
Member Author

Added a comment, please take a look. I feel like the comment is not entirely applicable to all of the packages, but in general should be true.

Copy link
Member

@jordanlewis jordanlewis left a comment

Choose a reason for hiding this comment

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

LGTM

@yuzefovich
Copy link
Member Author

TFTR!

bors r+

@craig
Copy link
Contributor

craig bot commented Mar 31, 2021

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.

3 participants