-
Notifications
You must be signed in to change notification settings - Fork 38
Open
Description
I'm using resource_discovery in an environment where I want to bring nodes up and down regularly.
The rd_util:sync_ping/2 function waits until the nodes(known) on a remote matches in number the nodes(known) on this node. It fails if this doesn't happen within timeout.
If I have a 'contact' node, and two nodes 'foo' and 'bar' then this sequence will break it:
- Bring up 'contact'.
- Bring up 'foo' and 'bar'
- Bring down 'foo' and 'bar'
- Bring up 'foo'.
After step 4, the 'contact' node has 3 nodes known, and the 'foo' node has 2 nodes known.
I am wondering why the cardinality of 'known' nodes is important?
I would suggest simply using nodes() in line 49, not nodes(known).
Metadata
Metadata
Assignees
Labels
No labels