Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

on_client_offline not triggered by shutdown #315

Open
bohlenc opened this issue Jun 14, 2022 · 0 comments
Open

on_client_offline not triggered by shutdown #315

bohlenc opened this issue Jun 14, 2022 · 0 comments

Comments

@bohlenc
Copy link
Contributor

bohlenc commented Jun 14, 2022

Environment

  • VerneMQ Version: 1.12.x

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. Commit 58dc85f41c6a8404c3504c97b2d923d095483490 (58dc85f) removed this:

    /vernemq/bin/vmq-admin cluster leave node=$terminating_node_name -k > /dev/null

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.

c.f. vernemq/vernemq#2003

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant