| 1 |
# ==== Purpose ==== |
| 2 |
# The test considers scenarios of OLD -> NEW replication, where NEW stands |
| 3 |
# for WL9175-based slave server, and OLD is of a prior version master. |
| 4 |
# This file consists of cases that need GTID=ON. |
| 5 |
# |
| 6 |
# ==== References ==== |
| 7 |
# WL#9175 Correct recovery of DDL statements/transactions by binary log |
| 8 |
# Bug #25665464 CROSS VERSION RPL BEHAVES DIFFERENTLY VARYING RELAY LOG INFO REPOSITORY CONF |
| 9 |
# |
| 10 |
|
| 11 |
--source include/have_debug.inc |
| 12 |
--source include/have_binlog_format_row.inc |
| 13 |
|
| 14 |
# |
| 15 |
# It's proved that the slave applier stops with an expected error |
| 16 |
# of mismatch between one that is recorded on master and the actual. |
| 17 |
# The slave applier does not update the execution coordinates so |
| 18 |
# at retry when the error simulation is withdrawn the event must |
| 19 |
# complete to good. |
| 20 |
# |
| 21 |
|
| 22 |
--source include/master-slave.inc |
| 23 |
|
| 24 |
--source include/rpl_connection_master.inc |
| 25 |
--disable_warnings |
| 26 |
DROP TABLE IF EXISTS t1; |
| 27 |
--enable_warnings |
| 28 |
|
| 29 |
--source include/sync_slave_sql_with_master.inc |
| 30 |
# --source include/rpl_connection_slave.inc |
| 31 |
call mtr.add_suppression("The replica coordinator and worker threads are stopped"); |
| 32 |
call mtr.add_suppression("Query caused different errors on source and replica"); |
| 33 |
|
| 34 |
SET @@global.debug="+d,simulate_error_in_ddl"; |
| 35 |
|
| 36 |
--source include/rpl_connection_master.inc |
| 37 |
CREATE TABLE t1 (a int); |
| 38 |
|
| 39 |
--source include/rpl_connection_slave.inc |
| 40 |
|
| 41 |
--let $slave_sql_errno= convert_error(ER_INCONSISTENT_ERROR) |
| 42 |
--source include/wait_for_slave_sql_error.inc |
| 43 |
|
| 44 |
# Slave should not be able to start the SQL thread |
| 45 |
START SLAVE SQL_THREAD; |
| 46 |
--let $slave_sql_errno= convert_error(ER_INCONSISTENT_ERROR) |
| 47 |
--source include/wait_for_slave_sql_error.inc |
| 48 |
|
| 49 |
# Removing the debug instrumentation should make slave to proceed |
| 50 |
SET @@global.debug="-d,simulate_error_in_ddl"; |
| 51 |
--source include/start_slave_sql.inc |
| 52 |
|
| 53 |
--source include/rpl_connection_master.inc |
| 54 |
DROP TABLE t1; |
| 55 |
--source include/rpl_end.inc |