You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now a timer or SIGUSR1 will cause the event loop thread to dump server stats to the debug log, which requires several high-level mutexes (Raft's, the state machine's etc). This opens up the potential for deadlock or for simply denying service to the event loop handlers. ServerStats should only be dumped from worker threads.
The text was updated successfully, but these errors were encountered:
Before the stats were being dumped from the event loop thread (on a
timer and SIGUSR1), which risked blocking the event loop thread for too
long and introduced the possibility of deadlock (in theory; I never saw
that in practice). Now, the event loop thread is only used to signal a
dedicated stats dumper thread.
Closelogcabin#159: event loop thread should never dump server stats
Right now a timer or SIGUSR1 will cause the event loop thread to dump server stats to the debug log, which requires several high-level mutexes (Raft's, the state machine's etc). This opens up the potential for deadlock or for simply denying service to the event loop handlers. ServerStats should only be dumped from worker threads.
The text was updated successfully, but these errors were encountered: