| 1 |
include/master-slave.inc |
| 2 |
[connection master] |
| 3 |
connection slave; |
| 4 |
call mtr.add_suppression("Slave IO thread did not receive an expected Rows-log end-of-statement"); |
| 5 |
call mtr.add_suppression("Relay log write failure: could not queue event from master"); |
| 6 |
SET @save_debug= @@global.debug_dbug; |
| 7 |
SET GLOBAL debug_dbug="+d,simulate_stmt_end_rows_event_loss"; |
| 8 |
include/stop_slave.inc |
| 9 |
CHANGE MASTER TO master_host = '127.0.0.1', master_port = MASTER_PORT, MASTER_USE_GTID=SLAVE_POS; |
| 10 |
connection master; |
| 11 |
CREATE TABLE t (a INT, b text(8192));; |
| 12 |
INSERT INTO t values (1, repeat('b', 8192)), (1, repeat('b', 8192)); |
| 13 |
connection slave; |
| 14 |
START SLAVE IO_THREAD; |
| 15 |
include/wait_for_slave_io_error.inc [errno=1595] |
| 16 |
SET GLOBAL debug_dbug="-d,simulate_stmt_end_rows_event_loss"; |
| 17 |
include/start_slave.inc |
| 18 |
connection master; |
| 19 |
connection slave; |
| 20 |
connection slave; |
| 21 |
include/stop_slave.inc |
| 22 |
connection master; |
| 23 |
SET @save_log_bin_compress= @@GLOBAL.log_bin_compress; |
| 24 |
SET @save_log_bin_compress_min_len= @@GLOBAL.log_bin_compress_min_len; |
| 25 |
SET @@GLOBAL.log_bin_compress=ON; |
| 26 |
SET @@GLOBAL.log_bin_compress_min_len=10; |
| 27 |
INSERT INTO t values (2, repeat('b', 8192)), (2, repeat('b', 8192)); |
| 28 |
connection slave; |
| 29 |
SET GLOBAL debug_dbug="+d,simulate_stmt_end_rows_event_loss"; |
| 30 |
START SLAVE IO_THREAD; |
| 31 |
include/wait_for_slave_io_error.inc [errno=1595] |
| 32 |
SET GLOBAL debug_dbug="-d,simulate_stmt_end_rows_event_loss"; |
| 33 |
include/start_slave.inc |
| 34 |
connection master; |
| 35 |
connection slave; |
| 36 |
connection master; |
| 37 |
SET @@GLOBAL.log_bin_compress= @save_log_bin_compress; |
| 38 |
SET @@GLOBAL.log_bin_compress_min_len= @save_log_bin_compress_min_len; |
| 39 |
DROP TABLE t; |
| 40 |
connection slave; |
| 41 |
SET GLOBAL debug_dbug= @save_debug; |
| 42 |
include/rpl_end.inc |