Skip to content

Commit

Permalink
ctdb_tests: Reconfigure the cluster when restarting CTDB
Browse files Browse the repository at this point in the history
The previous test might have made configuration changes, so call
setup_ctdb() to cause the configuration to be rewritten.  This is only
really useful in local daemons tests.

Signed-off-by: Martin Schwenke <[email protected]>
Reviewed-by: Amitay Isaacs <[email protected]>
  • Loading branch information
martin-schwenke authored and Amitay Isaacs committed Mar 19, 2018
1 parent bdfc8b7 commit 5615bdf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ctdb/tests/scripts/integration.bash
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ ctdb_test_exit ()
if $ctdb_test_restart_scheduled || ! cluster_is_healthy ; then
echo "Restarting CTDB (scheduled)..."
ctdb_stop_all || true # Might be restarting some daemons were shutdown

echo "Reconfiguring cluster..."
setup_ctdb

ctdb_start_all
else
# This could be made unconditional but then we might get
Expand Down

0 comments on commit 5615bdf

Please sign in to comment.