Fix replication after failover_mysqlmon

When the test finishes and is about to check whether MaxScale is alive,
the servers should be cleared from maintenance mode and the replication
should be fixed. This way the test will clean up after itself.
This commit is contained in:
Markus Mäkelä 2018-03-05 11:30:18 +02:00
parent 65216f5e16
commit cab827b0a4
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -62,6 +62,11 @@ int main(int argc, char *argv[])
"@@server_id is different: %s != %s", maxscale_id, real_id);
test->close_maxscale_connections();
test->ssh_maxscale(true, "maxadmin clear server server1 maintenance");
test->ssh_maxscale(true, "maxadmin clear server server2 maintenance");
test->ssh_maxscale(true, "maxadmin clear server server3 maintenance");
test->repl->fix_replication();
test->tprintf(" Check that MaxScale is running ");
test->check_maxscale_alive();