| 1 |
# |
| 2 |
# Check that multi source replication can't be used when replicating to NDB |
| 3 |
# |
| 4 |
--source include/have_ndb.inc |
| 5 |
|
| 6 |
# Configure multi soure replication, don't start replication |
| 7 |
--let $rpl_skip_start_slave= 1 |
| 8 |
--let $rpl_topology= 1->2,3->2 |
| 9 |
--let $rpl_multi_source= 1 |
| 10 |
--source include/rpl_init.inc |
| 11 |
|
| 12 |
# Connect to mysqld in second cluster and start replication |
| 13 |
--let $rpl_connection_name= cluster2 |
| 14 |
--let $rpl_server_number= 2 |
| 15 |
--source include/rpl_connect.inc |
| 16 |
|
| 17 |
--let $rpl_connection_name= cluster2 |
| 18 |
--source include/rpl_connection.inc |
| 19 |
|
| 20 |
--disable_query_log |
| 21 |
# Supress error messages written when ndbcluster plugin refuses |
| 22 |
# to start the multi source channel 'channel_1' |
| 23 |
call mtr.add_suppression("Replica: Multi source replication is not supported.*"); |
| 24 |
call mtr.add_suppression(".*Run function 'applier_start' in plugin.*"); |
| 25 |
call mtr.add_suppression(".*Failed to run 'applier_start' hook.*"); |
| 26 |
call mtr.add_suppression(".*Failed to remove channel 'channel_1'.*"); |
| 27 |
call mtr.add_suppression(".*Run function 'applier_stop' in plugin.*"); |
| 28 |
--enable_query_log |
| 29 |
|
| 30 |
# Start replication for one configured channel |
| 31 |
START REPLICA FOR CHANNEL 'channel_1'; |
| 32 |
|
| 33 |
# Use this to check status after failure to start replica |
| 34 |
#--sleep 2 |
| 35 |
#query_vertical SHOW REPLICA STATUS FOR CHANNEL 'channel_1'; |
| 36 |
|
| 37 |
# Check that replication fails to start with |
| 38 |
# error "ER_SLAVE_FATAL_ERROR 13117" since |
| 39 |
# multi source replication to NDB is not supported. |
| 40 |
--let $slave_sql_errno= 13117 |
| 41 |
--let $show_sql_error= 1 |
| 42 |
--let $rpl_channel_name= 'channel_1' |
| 43 |
--let $not_switch_connection= true |
| 44 |
--source include/wait_for_slave_sql_error.inc |
| 45 |
|
| 46 |
# Stop IO thread and reset |
| 47 |
--source include/stop_slave_io.inc |
| 48 |
RESET REPLICA; |
| 49 |
|
| 50 |
# tear down replication |
| 51 |
--let $rpl_skip_sync= 1 |
| 52 |
--source include/rpl_end.inc |