|
| 1 | +--source include/have_innodb.inc |
| 2 | +--source include/master-slave.inc |
| 3 | +--source include/not_embedded.inc |
| 4 | +--source include/not_windows.inc |
| 5 | +--source include/have_binlog_format_row.inc |
| 6 | + |
| 7 | +######################################################################################## |
| 8 | +call mtr.add_suppression("Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT"); |
| 9 | +call mtr.add_suppression("Slave SQL: The incident LOST_EVENTS occured on the master. .*"); |
| 10 | + |
| 11 | +let $old_max_binlog_cache_size= query_get_value(SHOW VARIABLES LIKE "max_binlog_cache_size", Value, 1); |
| 12 | +let $old_binlog_cache_size= query_get_value(SHOW VARIABLES LIKE "binlog_cache_size", Value, 1); |
| 13 | +let $old_max_binlog_stmt_cache_size= query_get_value(SHOW VARIABLES LIKE "max_binlog_stmt_cache_size", Value, 1); |
| 14 | +let $old_binlog_stmt_cache_size= query_get_value(SHOW VARIABLES LIKE "binlog_stmt_cache_size", Value, 1); |
| 15 | + |
| 16 | +SET GLOBAL max_binlog_cache_size = 4096; |
| 17 | +SET GLOBAL binlog_cache_size = 4096; |
| 18 | +SET GLOBAL max_binlog_stmt_cache_size = 4096; |
| 19 | +SET GLOBAL binlog_stmt_cache_size = 4096; |
| 20 | +disconnect master; |
| 21 | +connect (master,127.0.0.1,root,,test,$MASTER_MYPORT,); |
| 22 | + |
| 23 | +CREATE TABLE t1(a INT PRIMARY KEY, data VARCHAR(30000)) ENGINE=MYISAM; |
| 24 | + |
| 25 | +let $data = `select concat('"', repeat('a',2000), '"')`; |
| 26 | + |
| 27 | +connection master; |
| 28 | + |
| 29 | +--disable_query_log |
| 30 | +--error ER_BINLOG_ROW_LOGGING_FAILED |
| 31 | +eval INSERT INTO t1 (a, data) VALUES (2, |
| 32 | + CONCAT($data, $data, $data, $data, $data, $data)); |
| 33 | +--enable_query_log |
| 34 | + |
| 35 | +# Incident event |
| 36 | +# 1590=ER_SLAVE_INCIDENT |
| 37 | +--let $slave_sql_errno= 1590 |
| 38 | +--source include/wait_for_slave_sql_error_and_skip.inc |
| 39 | + |
| 40 | +connection master; |
| 41 | + |
| 42 | +--replace_result $old_max_binlog_cache_size ORIGINAL_VALUE |
| 43 | +--eval SET GLOBAL max_binlog_cache_size= $old_max_binlog_cache_size |
| 44 | +--replace_result $old_binlog_cache_size ORIGINAL_VALUE |
| 45 | +--eval SET GLOBAL binlog_cache_size= $old_binlog_cache_size |
| 46 | +--replace_result $old_max_binlog_stmt_cache_size ORIGINAL_VALUE |
| 47 | +--eval SET GLOBAL max_binlog_stmt_cache_size= $old_max_binlog_stmt_cache_size |
| 48 | +--replace_result $old_binlog_stmt_cache_size ORIGINAL_VALUE |
| 49 | +--eval SET GLOBAL binlog_stmt_cache_size= $old_binlog_stmt_cache_size |
| 50 | + |
| 51 | +DROP TABLE t1; |
| 52 | + |
| 53 | +--source include/rpl_end.inc |
0 commit comments