From f07d47a56d68e42bc89ea0ff2879fc7aab3ffdec Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Wed, 17 Apr 2013 13:08:49 +0200 Subject: tests: add a comment to recovery db corruption test The comment explains that we use "ctdb stop" and "ctdb continue" but we should use "ctdb setcrecmasterrole off". Signed-off-by: Michael Adam (This used to be ctdb commit 06ac62f890299021220214327f1b611c3cf00145) --- ctdb/tests/simple/77_ctdb_db_recovery.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ctdb/tests/simple/77_ctdb_db_recovery.sh b/ctdb/tests/simple/77_ctdb_db_recovery.sh index 1d5383df0e..00fa0965e0 100755 --- a/ctdb/tests/simple/77_ctdb_db_recovery.sh +++ b/ctdb/tests/simple/77_ctdb_db_recovery.sh @@ -57,6 +57,13 @@ try_command_on_node -q any $CTDB_TEST_WRAPPER ctdb recmaster recmaster="$out" if [ "$recmaster" = "0" ]; then echo "node 0 is recmaster, disable recmasterrole on node 0" + # + # Note: + # It should be sufficient to run "ctdb setrecmasterrole off" + # on node 0 and wait for election and recovery to finish. + # But there were problems related to this in this automatic + # test, so for now use "ctdb stop" and "ctdb continue". + # echo "stop node 0" try_command_on_node -q 0 $CTDB_TEST_WRAPPER ctdb stop wait_until_node_has_status 0 stopped -- cgit