Local node never returned in key lookup
pma opened this issue · 0 comments
pma commented
I was testing a lookup with 3 nodes in the ring. For the same key, running the lookup in nodes b and c returned a. Running the lookup in node a, returned b.
Turns out the managed ring is not initialized with the local node. Line 32 in HashRing.Worker.init/1 should be changed to:
nodes = Node.list([:this, :connected])