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
I expect the on_client_offline hook to be called when a client session is terminated because of a node shutdown.
This was the case up until and including version 1.11.0.
Actual behaviour
The on_client_offline hook is not called anymore in version 1.12.0 in later when the node is shutdown.
Additional information
I tracked the change in behavior down to the sigterm_handler. Commit 58dc85f41c6a8404c3504c97b2d923d095483490 (58dc85f) removed this:
Adding these back in restores the previous behavior. So, it seems that the hook is triggered by how client sessions are terminated on cluster leave but not on node stop.
Environment
Expected behaviour
I expect the
on_client_offline
hook to be called when a client session is terminated because of a node shutdown.This was the case up until and including version 1.11.0.
Actual behaviour
The
on_client_offline
hook is not called anymore in version 1.12.0 in later when the node is shutdown.Additional information
I tracked the change in behavior down to the
sigterm_handler
. Commit58dc85f41c6a8404c3504c97b2d923d095483490
(58dc85f) removed this:Adding these back in restores the previous behavior. So, it seems that the hook is triggered by how client sessions are terminated on
cluster leave
but not onnode stop
.c.f. vernemq/vernemq#2003
The text was updated successfully, but these errors were encountered: