Tests - simple integration - do a "ctdb sync" after restarting the cluster
authorMartin Schwenke <martin@meltin.net>
Fri, 2 Sep 2011 03:20:50 +0000 (13:20 +1000)
committerMartin Schwenke <martin@meltin.net>
Sun, 25 Sep 2011 04:45:48 +0000 (14:45 +1000)
There looks to be a minor race where IPs haven't yet been reallocated
but the cluster is healthy.  This should fix it.

Signed-off-by: Martin Schwenke <martin@meltin.net>
tests/scripts/ctdb_test_functions.bash

index 13797dc89f56c825c38eaf41dfe9dc254c449150..670b91e6f1768db0f2fcd3fadcac54bc3574f605 100644 (file)
@@ -929,6 +929,9 @@ restart_ctdb ()
            continue
        fi
 
+       echo "Doing a sync..."
+       onnode -q 0 $CTDB sync
+
        echo "ctdb is ready"
        return 0
     done