Erlang / OTP App's handle_info not getting {nodedown, _, _ } or {nodedown, _} messages
-
26-10-2019 - |
Question
I have an Erlang/OTP app, whose handle_info function is not getting {nodedown, _, _ }
or {nodedown, _ }
messages when a companion node goes down. However, when the companion node comes back up, I do get {nodeup, _, _}
messages.
I use net_kernel:monitor_nodes( true, [{node_type, all}])
in the OTP server's init/1
function.
Also, if I start this OTP app as an application, and receive X->X
done. on the shell, and then kill the companion node, I do get a {nodedown, _, _ }
on the shell !
So why isn't handle_info getting the message if the shell is ?
Thanks !
Solution
'twas an issue with compatibility of RabbitMQ with the then newly released R15A version of erlang. Switching back to R14B3 solved the problem for me.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow