Skip to content

Commit 62c12ac

Browse files
committed
broker: reduce CONTROL_DISCONNECT log severity
Probem: after a rank 0 broker crash, the systemd journal captures many of the following messages: broker.err[0]: failed to send CONTROL_DISCONNECT: No route to host Reduce the log severity to LOG_DEBUG for these messages as they are generally not too helpful. Fixes #4464
1 parent 10d1639 commit 62c12ac

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/broker/overlay.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -897,8 +897,13 @@ static void child_cb (flux_reactor_t *r, flux_watcher_t *w,
897897
* Send CONTROL_DISCONNECT to force subtree panic.
898898
*/
899899
else {
900-
if (overlay_control_child (ov, uuid, CONTROL_DISCONNECT, 0) < 0)
901-
flux_log_error (ov->h, "failed to send CONTROL_DISCONNECT");
900+
if (overlay_control_child (ov, uuid, CONTROL_DISCONNECT, 0) < 0) {
901+
// not LOG_ERR per flux-framework/flux-core#4464
902+
flux_log (ov->h,
903+
LOG_DEBUG,
904+
"failed to send CONTROL_DISCONNECT: %s",
905+
strerror (errno));
906+
}
902907
}
903908
goto done;
904909
}

0 commit comments

Comments
 (0)