Giter Site home page Giter Site logo

horde_behavior's Introduction

HordeBehavior

Repository that helps reproduce weird behaviour of Horde.Registry.

Problem: disappearing values from Horde.Registry after spawning more than two nodes.

Expected behavior: After adding more nodes, values in the Horde.Registry from all nodes will be synced without losing any value.

Elixir: 1.13.3
horde: 0.8.7

Reproduce:

  • start first node
  iex --sname node1@localhost --cookie foo -S mix
  • start second node
  iex --sname node2@localhost --cookie foo -S mix
  • check state of registry on node1 - should be two processes - one per node
  nodes = [node() | Node.list()]
  Enum.map(nodes, fn node -> Horde.Registry.lookup(Registry.State, node); end)
  [[{#PID<0.276.0>, nil}], [{#PID<19886.268.0>, nil}]]
  • start third node
  iex --sname node3@localhost --cookie foo -S mix
  • check state of registry on node1 - should be three processes but there are only two processes - first and last - the middle one disappearing
  nodes = [node() | Node.list()]
  Enum.map(nodes, fn node -> Horde.Registry.lookup(Registry.State, node); end)
  [[{#PID<0.276.0>, nil}], [], [{#PID<21155.273.0>, nil}]]

Notes

Agent.start_link(fn -> 553 end, name: {:via,iex(node2@localhost)1> Agent.start_link(fn -> 553 end, name: {:via, Horde.Registry, {Registry.State, node()}})

horde_behavior's People

Contributors

lklemens avatar

Stargazers

Hadj H. avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.