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

util/stop: fix span use when recovering from a panic #83290

Merged
merged 2 commits into from
Jun 24, 2022

Conversation

andreimatei
Copy link
Contributor

When recovering from a panic, the stopper was first finishing the
tracing span and then using it to log the panic. This was a
use-after-finish. It was not caught by the unit test because the test
was short-circuiting the logging part; I've improved the test so that it
would have caught it.

Release note: None

When recovering from a panic, the stopper was first finishing the
tracing span and then using it to log the panic. This was a
use-after-finish. It was not caught by the unit test because the test
was short-circuiting the logging part; I've improved the test so that it
would have caught it.

Release note: None
The goroutine dealing with reading from a pgwire connection was logging
panics, but that was redundant with what the Stopper was about to also
do.

Release note: None
@andreimatei andreimatei requested a review from knz June 23, 2022 16:19
@andreimatei andreimatei requested a review from a team as a code owner June 23, 2022 16:19
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Contributor

@knz knz 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, 2 of 2 files at r2, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @andreimatei)

Copy link
Contributor Author

@andreimatei andreimatei left a comment

Choose a reason for hiding this comment

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

bors r+

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @andreimatei)

@craig
Copy link
Contributor

craig bot commented Jun 23, 2022

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

@craig
Copy link
Contributor

craig bot commented Jun 23, 2022

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Jun 24, 2022

Build succeeded:

@craig craig bot merged commit 7af6c0d into cockroachdb:master Jun 24, 2022
@andreimatei andreimatei deleted the stopper.recover branch July 21, 2022 16:17
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