Erlang / OTP App's handle_info not getting {nodedown, _, _ } or {nodedown, _} messages

StackOverflow https://stackoverflow.com/questions/8807317

  •  26-10-2019
  •  | 
  •  

Pergunta

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 !

Foi útil?

Solução

'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.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top