mrluc / peerage

Easy Elixir clusters, pluggable discovery. DNS-based (Kubernetes, Weave), UDP multicast, others.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot get connection id for node error in OTP 21.0

iamd3vil opened this issue · comments

In Erlang/OTP 21, we are getting Cannot get connection id for node error. This is due to change in OTP 21 where self connecting is an error, where it is previously ignored.

Erlang/OTP 21 [erts-10.0.1] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [hipe]

Interactive Elixir (1.6.6) - press Ctrl+C to exit (type h() ENTER for help)
iex(machine@1ccb50f51a40)1> Node.connect(node())
07:16:38.764 [error]  ** Cannot get connection id for node :machine@1ccb50f51a40
false

Same issue occured in libcluster as well: bitwalker/libcluster#70

This should be solved by not self connecting. I can work on it and send a PR.