- Create a master-slave replication setup.
- Generate some traffic and if possible arrange things so that slaves will lag behind the master.
- Start a read-write transaction.
- Initiate switchover to some slave.
- Check that any new update in the previously started transaction fails.
- Check that it no longer is possible to initiate new writes through MaxScale.
- Wait for the switchover operation to finish (the switchover mechanism should wait for the chosen slave to catch up, and then promote it to master).
- Verify that the specified slave is now the new master and that the old master is a slave.
|