Skip to content

Commit

Permalink
add sleep to prevent flappy test and document that a change to the la…
Browse files Browse the repository at this point in the history
…bels causes the membership to reconverge
  • Loading branch information
Nils Dijk committed Aug 11, 2016
1 parent 1d2d67a commit 86779e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/role-labels/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ This will give you the list of all instances as they all start with their role s

$ tcurl role -P hosts.json --thrift ./role.thrift RoleService::SetRole '{"role":"roleB"}'
{"ok":true,"head":{},"headers":{"as":"thrift"},"trace":"*"} (glob)
$ sleep 2 # give the cluster of 5 some time to converge on the new state of the membership

To validate that this worked we can now lookup both the members for `roleA` and `roleB` and see that the membership lists contain respectively 4 and 1 member:

Expand Down

0 comments on commit 86779e9

Please sign in to comment.