Fixing log message spam - #386
Conversation
License Check Results🚀 The license check job ran with the Bazel command: bazel run --lockfile_mode=error //:license-checkStatus: Click to expand output |
|
The created documentation from the pull request is available at: docu-html |
| @@ -464,10 +462,6 @@ bool ProcessGroupManager::sendResponse(ControlClientMessage msg) | |||
| << static_cast<int>(msg.request_or_response_) << ") re state" | |||
| << msg.process_group_state_.pg_state_name_ << "of PG" << msg.process_group_state_.pg_name_; | |||
| ret = scc->sendResponse(msg); | |||
There was a problem hiding this comment.
Would be nice to clean up this variable which is not necessary since the if was removed
| ret = scc->sendResponse(msg); | |
| return scc->sendResponse(msg); |
| init_cv_.notify_all(); | ||
| } | ||
|
|
||
| loadControlNudge(); |
WilliamRoebuck
left a comment
There was a problem hiding this comment.
Looks good, I ran the complex rep failure test to make sure we don't lose 100ms due to the lack of polling, but look at these results!
Before:
Stats over 10 runs: max = 15.0s, min = 10.1s, avg = 12.9s, dev = 1.7s
After:
Stats over 10 runs: max = 9.2s, min = 7.4s, avg = 8.3s, dev = 0.6s
| static void my_signal_handler(int) | ||
| { | ||
| em_cancelled.store(true); | ||
| ControlClientChannel::nudgeControlClientHandler(); |
There was a problem hiding this comment.
nitpick: nudgeControlClientHandler uses SCORE_LANGUAGE_FUTURECPP_ASSERT_MESSAGE and we do not have a signal-safe assertion handler right now.
It also uses LM_LOG_DEBUG to log a message, which probably also not valid to call from a signal handler.
There was a problem hiding this comment.
Could this be called before the control client is setup? E.g. launch manager is started but directly receives a SIGTERM/SIGINT
There was a problem hiding this comment.
Once #303 is merged we can use the new signal-safe logging functions from there.
Fixes unlimited polling on the control channel for a response to be available causing the spam of info messages:
Also some small cleanup of
mmaps