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

colexecop: harden CloseAndLogOnErr against panics #70467

Merged
merged 1 commit into from
Sep 21, 2021

Conversation

yuzefovich
Copy link
Member

We have seen a few cases where closing the Closers would lead to
a panic which wasn't caught because we're outside of the panic-catcher
scope. This commit adds a panic-catcher to CloseAndLogOnErr (which is
the "root" way of closing things) in order to increase the stability of
CRDB in face of edge case bugs.

Addresses: #70000.
Addresses: #70438.

Release note: None

We have seen a few cases where closing the `Closer`s would lead to
a panic which wasn't caught because we're outside of the panic-catcher
scope. This commit adds a panic-catcher to `CloseAndLogOnErr` (which is
the "root" way of closing things) in order to increase the stability of
CRDB in face of edge case bugs.

Release note: None
@yuzefovich yuzefovich requested a review from a team September 21, 2021 01:27
@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 1 of 1 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @yuzefovich)

@yuzefovich
Copy link
Member Author

TFTR!

bors r+

@craig
Copy link
Contributor

craig bot commented Sep 21, 2021

This PR was included in a batch that was canceled, it will be automatically retried

@craig
Copy link
Contributor

craig bot commented Sep 21, 2021

Build succeeded:

@craig craig bot merged commit 16d935d into cockroachdb:master Sep 21, 2021
@yuzefovich yuzefovich deleted the harden-closers branch September 21, 2021 18:00
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