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

cluster: improved logging during shutdown #5672

Merged
merged 1 commit into from
Jul 28, 2022

Conversation

jcsp
Copy link
Contributor

@jcsp jcsp commented Jul 27, 2022

Cover letter

In shutdown hangs like #5178 (comment) , it can be hard to get a sense of which part of shutdown is in progress when something goes wrong.

This PR adds some additional INFO level logging so that whether in the field or in automated testing, we have a trail of log messages to give us a hint about where the problem lies.

UX changes

Slightly more verbose logging during shutdown.

Release notes

  • none

For classes that have an asynchronous ::stop
method, it is very helpful to log on entry, so that
in the event of a shutdown hang bug we have a good chance
at telling which shutdown stage had the problem.

Logging at INFO is a little verbose, but it is only
one time on shutdown & if a user hits a shutdown
hang they are unlikely to have debug logs turned
on in advance.
@jcsp jcsp marked this pull request as ready for review July 27, 2022 15:41
@jcsp
Copy link
Contributor Author

jcsp commented Jul 28, 2022

CI failure is ARM builder with full disk.

Copy link
Member

@mmaslankaprv mmaslankaprv left a comment

Choose a reason for hiding this comment

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

lgtm

@jcsp jcsp merged commit a3c1ee2 into redpanda-data:dev Jul 28, 2022
Copy link
Member

@dotnwat dotnwat left a comment

Choose a reason for hiding this comment

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

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants