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

cherrypick-1.1: util/log: Avoid infinite recursion out of disk errors cause an exit #21804

Merged
merged 1 commit into from Jan 26, 2018

Conversation

a-robinson
Copy link
Contributor

Trying to write to a file when we're out of disk will trigger
exitLocked, but exitLocked tries to write to its file one last time in
order to help users understand why the process is exiting. This is very
valuable most of the time, when the problem isn't that the machine is
out of disk, but shouldn't cause a stack overflow when the machine is
out of space.

Fixes #21756

Release note (bug fix): fix a stack overflow in the code for shutting
down a server when out of disk space

Trying to write to a file when we're out of disk will trigger
exitLocked, but exitLocked tries to write to its file one last time in
order to help users understand why the process is exiting. This is very
valuable most of the time, when the problem isn't that the machine is
out of disk, but shouldn't cause a stack overflow when the machine is
out of space.

Fixes cockroachdb#21756

Release note (bug fix): fix a stack overflow in the code for shutting
down a server when out of disk space
@a-robinson a-robinson requested review from benesch and a team January 25, 2018 20:45
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Contributor

@benesch benesch left a comment

Choose a reason for hiding this comment

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

:shipit:

@a-robinson a-robinson merged commit d0e5e6b into cockroachdb:release-1.1 Jan 26, 2018
@a-robinson a-robinson deleted the cherrypick_21768 branch May 18, 2018 20:26
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