| 1 |
source include/have_binlog_format_statement.inc; |
| 2 |
--source include/not_group_replication_plugin.inc |
| 3 |
source include/have_debug.inc; |
| 4 |
source include/master-slave.inc; |
| 5 |
|
| 6 |
# We do this little stunt to make sure that the slave has started |
| 7 |
# before we stop it again. |
| 8 |
connection master; |
| 9 |
CREATE TABLE t1 (a INT, b INT); |
| 10 |
INSERT INTO t1 VALUES (1,10); |
| 11 |
--source include/sync_slave_sql_with_master.inc |
| 12 |
|
| 13 |
# Now we feed it a load data infile, which should make it stop with a |
| 14 |
# fatal error. |
| 15 |
connection master; |
| 16 |
LOAD DATA INFILE '../../std_data/rpl_loaddata.dat' INTO TABLE t1; |
| 17 |
|
| 18 |
connection slave; |
| 19 |
call mtr.add_suppression("Replica SQL.*Fatal error: Not enough memory, Error_code: MY-013117"); |
| 20 |
call mtr.add_suppression("The replica coordinator and worker threads are stopped, possibly leaving data in inconsistent state"); |
| 21 |
|
| 22 |
--let $slave_sql_errno= convert_error(ER_REPLICA_FATAL_ERROR) # 1593 |
| 23 |
source include/wait_for_slave_sql_error_and_skip.inc; |
| 24 |
|
| 25 |
connection master; |
| 26 |
DROP TABLE t1; |
| 27 |
--remove_files_wildcard $MYSQLTEST_VARDIR/tmp SQL_LOAD* |
| 28 |
--source include/sync_slave_sql_with_master.inc |
| 29 |
|
| 30 |
--source include/rpl_end.inc |