-
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
flux-kvs: improve eventlog error messages #6531
flux-kvs: improve eventlog error messages #6531
Conversation
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.
LGTM! Just a suggestion inline
src/cmd/flux-kvs.c
Outdated
if (!(a = eventlog_decode (s))) | ||
if (!(a = eventlog_decode (s))) { | ||
if (errno == EINVAL) { | ||
log_msg ("cannot decode improperly formatted eventlog"); |
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.
use log_msg_exit()
@@ -2135,8 +2140,13 @@ void eventlog_wait_event_continuation (flux_future_t *f, void *arg) | |||
log_err_exit ("flux_kvs_lookup_get"); | |||
} | |||
|
|||
if (!(a = eventlog_decode (s))) | |||
if (!(a = eventlog_decode (s))) { |
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.
use log_msg_exit()
Problem: When an improperly formatted eventlog is input into eventlog commands, a non-useful error message is output. Output a better error message.
Problem: The flux kvs eventlog commands don't have coverage for improperly formatted eventlogs. Add some coverage to t1008-kvs-eventlog.t.
2cb18ac
to
8d7ad52
Compare
thanks, tweaked per comment above, setting MWP |
Problem: When an improperly formatted eventlog is input into eventlog commands, a non-useful error message is output.
Output a better error message.