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

release-20.1: sql: catch panics from SHOW STATISTICS code #58264

Merged

Conversation

RaduBerinde
Copy link
Member

Backport 1/1 commits from #58221.

/cc @cockroachdb/release


This change adds a panic catcher around the code that processes the
statistics for SHOW STATISTICS. This statement is used internally for
statement diagnostics, so a crash here can be very bad.

Informs #58220.
Informs #56356.

Release note (bug fix): added a safeguard against crashes while
running SHOW STATISTICS USING JSON, which is used internally for
statement diagnostics and EXPLAIN ANALYZE (DEBUG).

This change adds a panic catcher around the code that processes the
statistics for SHOW STATISTICS. This statement is used internally for
statement diagnostics, so a crash here can be very bad.

Informs cockroachdb#58220.
Informs cockroachdb#56356.

Release note (bug fix): added a safeguard against crashes while
running `SHOW STATISTICS USING JSON`, which is used internally for
statement diagnostics and EXPLAIN ANALYZE (DEBUG).
@RaduBerinde RaduBerinde requested a review from a team as a code owner December 23, 2020 23:54
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Collaborator

@rytaft rytaft 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 2 of 2 files at r1.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @RaduBerinde)

@RaduBerinde RaduBerinde merged commit d289b1e into cockroachdb:release-20.1 Dec 24, 2020
@RaduBerinde RaduBerinde deleted the backport20.1-58221 branch December 24, 2020 01:49
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.

None yet

3 participants