ctdb-tests: Actually restart if cluster doesn't become healthy
authorMartin Schwenke <martin@meltin.net>
Fri, 10 May 2019 09:22:16 +0000 (19:22 +1000)
committerAmitay Isaacs <amitay@samba.org>
Mon, 13 May 2019 07:27:24 +0000 (07:27 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13924

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/tests/scripts/integration.bash

index ce5bd57..32a729d 100644 (file)
@@ -520,6 +520,7 @@ ctdb_init ()
 {
     local i
     for i in $(seq 1 5) ; do
+       ctdb_stop_all >/dev/null 2>&1 || :
        ctdb_start_all || {
            echo "Start failed.  Trying again in a few seconds..."
            sleep_for 5