Sync slaves before starting the test

Syncing the slaves should guarantee that the table exists on all servers.
This commit is contained in:
Markus Mäkelä 2018-03-13 15:17:18 +02:00
parent a75ea27a96
commit 2856b91077
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -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 ");