From 2856b91077cab3844af258a8c84ce3bd087cd05f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Tue, 13 Mar 2018 15:17:18 +0200 Subject: [PATCH] Sync slaves before starting the test Syncing the slaves should guarantee that the table exists on all servers. --- maxscale-system-test/failover_mysqlmon.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/maxscale-system-test/failover_mysqlmon.cpp b/maxscale-system-test/failover_mysqlmon.cpp index 570609ada..d3315c917 100644 --- a/maxscale-system-test/failover_mysqlmon.cpp +++ b/maxscale-system-test/failover_mysqlmon.cpp @@ -23,11 +23,13 @@ int main(int argc, char *argv[]) test->try_query(test->conn_rwsplit, "INSERT INTO test.t1 VALUES (1)"); test->close_maxscale_connections(); + test->repl->connect(); + test->repl->sync_slaves(); + test->tprintf(" Block all but one node "); test->repl->block_node(0); test->repl->block_node(1); test->repl->block_node(2); - test->repl->connect(); execute_query(test->repl->nodes[3], "STOP SLAVE;RESET SLAVE ALL;"); test->tprintf(" Wait for the monitor to detect it ");