-
Notifications
You must be signed in to change notification settings - Fork 50
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
broker: log content store errors to LOG_CRIT #4526
broker: log content store errors to LOG_CRIT #4526
Conversation
764f3c8
to
fb747e5
Compare
Codecov Report
@@ Coverage Diff @@
## master #4526 +/- ##
==========================================
- Coverage 83.38% 83.36% -0.02%
==========================================
Files 403 402 -1
Lines 67736 67664 -72
==========================================
- Hits 56480 56409 -71
+ Misses 11256 11255 -1
|
src/broker/content-cache.c
Outdated
@@ -505,7 +505,7 @@ static void cache_store_continuation (flux_future_t *f, void *arg) | |||
flux_log (cache->h, LOG_DEBUG, "content store: %s", | |||
"backing store service unavailable"); | |||
else | |||
flux_log_error (cache->h, "content store"); | |||
flux_log (cache->h, LOG_CRIT, "content store"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be
flux_log (cache->h, LOG_CRIT, "content store: %s", strerror (errno));
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh yeah, no strerror output when you take out the error ... my bad, sloppy :P
fb747e5
to
b27c5ea
Compare
re-pushed, fixing up the 1 line ... in my 1 line patch :P |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Problem: In the event of content store errors, such as ENOSPC if the disk is full, error messages are logged to LOG_ERR. This does not properly signify the severity of the error, as something like ENOSPC would mean no data is being backed up to disk. Solution: Log to LOG_CRIT, to signify the importance of this issue and the need for it to be resolved.
b27c5ea
to
e6c152b
Compare
Problem: In the event of content store errors, such as ENOSPC
if the disk is full, error messages are logged to LOG_ERR. This
does not properly signify the severity of the error, as something
like ENOSPC would mean no data is being backed up to disk.
Solution: Log to LOG_CRIT, to signify the importance of this
issue and the need for it to be resolved.