| 1 |
--source include/have_innodb.inc |
| 2 |
--source include/have_binlog_format_row.inc |
| 3 |
--source include/master-slave.inc |
| 4 |
--source include/have_sequence.inc |
| 5 |
|
| 6 |
call mtr.add_suppression("Global temporary space limit reached.*"); |
| 7 |
call mtr.add_suppression("Writing one row to the row-based binary log failed.*"); |
| 8 |
|
| 9 |
--connection slave |
| 10 |
STOP SLAVE; |
| 11 |
SET GLOBAL slave_parallel_threads=2, max_tmp_total_space_usage=64*1024; |
| 12 |
START SLAVE; |
| 13 |
|
| 14 |
--connection master |
| 15 |
CREATE TABLE t1 ( |
| 16 |
a bigint primary key auto_increment, |
| 17 |
v blob |
| 18 |
) engine=innodb; |
| 19 |
|
| 20 |
start transaction; |
| 21 |
insert into t1 (v) select repeat("a", seq) from seq_1000_to_1032; |
| 22 |
insert into t1 (v) select repeat("b", seq) from seq_1000_to_1032; |
| 23 |
insert into t1 (v) select repeat("c", seq) from seq_1000_to_1032; |
| 24 |
commit; |
| 25 |
drop table t1; |
| 26 |
|
| 27 |
# The slave SQL thread should die because of Global temporary space limit |
| 28 |
--connection slave |
| 29 |
let $show_slave_sql_error=0; |
| 30 |
let $slave_sql_errno=42; |
| 31 |
let $slave_skip_counter=2; |
| 32 |
--source include/wait_for_slave_sql_error_and_skip.inc |
| 33 |
|
| 34 |
# cleanup |
| 35 |
--connection slave |
| 36 |
STOP SLAVE; |
| 37 |
SET GLOBAL max_tmp_total_space_usage=default; |
| 38 |
set GLOBAL slave_parallel_threads=default; |