MXS-1561 Switchover to bad master

auto_failover=true
auto_rejoin=false

This test tests the following:

- Regular master-slave setup
- Create a table, insert some data
- Sync all slaves
- Stop a slave
- Insert some more data
- Sync remaining slaves
- Stop the master
- Expect the failover mechanism to pick a new master (server2)
- Bring up the slave
- Perform a switchover from server2 to server4
- Should fail

Currently it does fail, but only due to a timeout.

    [mysqlmon] MASTER_GTID_WAIT() timed out on slave 'server4'.

There should be some check that would ensure that the failure happens
faster than that.
This commit is contained in:
Johan Wikman
2017-12-18 15:41:21 +02:00
parent 033e3f628e
commit c4ba3ba4ca
4 changed files with 316 additions and 0 deletions

View File

@ -105,6 +105,7 @@ max_connections
maxscale_process_user
mm
mm_mysqlmon
mysqlmon_failover_bad_master
mysqlmon_failover_manual
mysqlmon_failover_manual2_4
mysqlmon_failover_manual2_3