-
Notifications
You must be signed in to change notification settings - Fork 1.6k
A global overseer shutdown handle #6979
Comments
We already have signal handlers for This should be fixed immediately as otherwise we risk data loss. |
We should handle every termination signal that can be handled, like Edit: actually I'm not sure now after reading "Certain kinds of cleanups are best omitted in handling SIGQUIT."
Out of curiosity, what kind of data loss can it lead to? I would think critical things should be done in an ACID way. |
Wow. So just changing Of course, I grepped code for
Well, we probably should, but did you ever see the |
Yeah, I'm not sure that
So we should handle this one for sure, looks like we don't right now.
We could have a code comment there that mentions the signals, for clarity and greppability. |
Nit: it is |
Yeah, mixed up with |
In #6861, a hotfix was implemented to shut down the node from an external process if things are going terribly wrong to prevent raising unnecessary disputes. The current implementation sends
SIGKILL
to its parent node process, forcing it to terminate.A much better solution would be a node-wide handle allowing the node to shut down gracefully in an emergency, for example, a
SIGHUP
orSIGUSR1
handler that sends a shutdown signal to the overseer. To implement it, we need to figure out how/if it is possible to signal the overseer shutdown from a system signal handler.The text was updated successfully, but these errors were encountered: