diff options
author | Michael Adam <obnox@samba.org> | 2013-04-17 13:08:49 +0200 |
---|---|---|
committer | Amitay Isaacs <amitay@gmail.com> | 2013-04-17 21:16:45 +1000 |
commit | f07d47a56d68e42bc89ea0ff2879fc7aab3ffdec (patch) | |
tree | d1c13475c2a14cbea54a375a2bf109de294a5812 /ctdb/tests | |
parent | 41e2a2e272edc0ccbd85b2e028f51b2e13bd4623 (diff) | |
download | samba-f07d47a56d68e42bc89ea0ff2879fc7aab3ffdec.tar.gz samba-f07d47a56d68e42bc89ea0ff2879fc7aab3ffdec.tar.xz samba-f07d47a56d68e42bc89ea0ff2879fc7aab3ffdec.zip |
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 <obnox@samba.org>
(This used to be ctdb commit 06ac62f890299021220214327f1b611c3cf00145)
Diffstat (limited to 'ctdb/tests')
-rwxr-xr-x | ctdb/tests/simple/77_ctdb_db_recovery.sh | 7 |
1 files changed, 7 insertions, 0 deletions
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 |