| 1 |
--source include/have_binlog_format_statement.inc |
| 2 |
# Test requires master-info-repository=TABLE, relay-log-info-repository=TABLE |
| 3 |
--source include/have_slave_repository_type_table.inc |
| 4 |
--source include/master-slave.inc |
| 5 |
|
| 6 |
--source include/rpl_connection_slave.inc |
| 7 |
# |
| 8 |
# Testing how well MSR handles initialization failures. |
| 9 |
# Specifically it's proved that a failure to initialize mi in one of |
| 10 |
# the channels allows RESET SLAVE, no crash happens. |
| 11 |
# |
| 12 |
|
| 13 |
# The default channel and channel 'ch_a' will connect to the same master |
| 14 |
CALL mtr.add_suppression("A replica with the same server_uuid/server_id as this replica has connected to the source"); |
| 15 |
CALL mtr.add_suppression("Error during --relay-log-recovery.*"); |
| 16 |
CALL mtr.add_suppression("Server was not able to find a rotate event from source server.*"); |
| 17 |
CALL mtr.add_suppression("Recovery from source pos.* and file"); |
| 18 |
|
| 19 |
--source include/stop_slave.inc |
| 20 |
|
| 21 |
--replace_result $MASTER_MYPORT MASTER_PORT |
| 22 |
eval CHANGE REPLICATION SOURCE TO SOURCE_HOST='localhost', SOURCE_USER='root', SOURCE_PORT=$MASTER_MYPORT FOR CHANNEL 'ch_a'; |
| 23 |
CHANGE REPLICATION SOURCE TO SOURCE_HOST='dummy_host', SOURCE_USER='root', SOURCE_PORT=13010 FOR CHANNEL 'ch_b'; |
| 24 |
START SLAVE; |
| 25 |
|
| 26 |
STOP SLAVE FOR CHANNEL 'ch_a'; |
| 27 |
|
| 28 |
# --relay-log-recovery is a source of the following mi initialization failure |
| 29 |
--let $rpl_server_number= 2 |
| 30 |
--let $rpl_server_parameters= --skip-replica-start |
| 31 |
--source include/rpl_restart_server.inc |
| 32 |
|
| 33 |
--source include/rpl_connection_slave.inc |
| 34 |
RESET SLAVE ALL; |
| 35 |
|
| 36 |
--let $rpl_skip_sync= 1 |
| 37 |
--let $rpl_only_running_threads= 1 |
| 38 |
--source include/rpl_end.inc |