ctdb-tests: Fix "setreclock" test
authorMartin Schwenke <martin@meltin.net>
Fri, 30 Oct 2015 02:06:24 +0000 (13:06 +1100)
committerMichael Adam <obnox@samba.org>
Mon, 9 Nov 2015 06:53:18 +0000 (07:53 +0100)
commit3a7c73ff7ba8d66b5e0430c188e8ba0657252cea
tree59e58cee780787e010cd81df633681be0ec6e015
parent1ed577efa0e99ee55d78a261ffb9c6497701173f
ctdb-tests: Fix "setreclock" test

1. Waiting for generation to change isn't enough.  It now changes
   early in recovery and reclock might not have been set on all nodes.
   So wait until recovery is complete before checking reclock.

2. Use onnode -p when setting reclock on all nodes.  That will cause
   it to be set quickly on all nodes, to avoid the situation where the
   recovery master is the late in the list and resets the reclock on
   earlier nodes back to the old value.  This shouldn't matter if (1)
   is done but it can't hurt.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Michael Adam <obnox@samba.org>
ctdb/tests/simple/35_set_reclock.sh