Debian Codegraph @

mysql-test/suite/rpl/r/rpl_binlog_cache_disk_full_row.result

raw
1 include/master-slave.inc
2 [connection master]
3 connection master;
4 SET @save_binlog_stmt_cache_size= @@GLOBAL.binlog_stmt_cache_size;
5 SET GLOBAL binlog_stmt_cache_size= 4096;
6 CALL mtr.add_suppression('"No space left on device".*An incident event is written to binary log');
7 CREATE TABLE t1 (a INT PRIMARY KEY, b VARCHAR(255)) ENGINE=MyISAM;
8 FLUSH GLOBAL STATUS;
9 SHOW STATUS LIKE "binlog_stmt_cache%";
10 Variable_name Value
11 Binlog_stmt_cache_disk_use 0
12 Binlog_stmt_cache_use 0
13 INSERT INTO t1 VALUES (0, CONCAT("?", "-", REPEAT("x", 200)));
14 INSERT INTO t1 SELECT a+1, CONCAT(a, "-", REPEAT("x", 200)) FROM t1;
15 INSERT INTO t1 SELECT a+2, CONCAT(a, "-", REPEAT("x", 200)) FROM t1;
16 INSERT INTO t1 SELECT a+4, CONCAT(a, "-", REPEAT("x", 200)) FROM t1;
17 INSERT INTO t1 SELECT a+8, CONCAT(a, "-", REPEAT("x", 200)) FROM t1;
18 INSERT INTO t1 SELECT a+16, CONCAT(a, "-", REPEAT("x", 200)) FROM t1;
19 INSERT INTO t1 SELECT a+32, CONCAT(a, "-", REPEAT("x", 200)) FROM t1;
20 INSERT INTO t1 SELECT a+64, CONCAT(a, "-", REPEAT("x", 200)) FROM t1;
21 INSERT INTO t1 SELECT a+128, CONCAT(a, "-", REPEAT("x", 200)) FROM t1;
22 SHOW STATUS LIKE "binlog_stmt_cache%";
23 Variable_name Value
24 Binlog_stmt_cache_disk_use 2
25 Binlog_stmt_cache_use 9
26 SET @old_dbug= @@SESSION.debug_dbug;
27 SET SESSION debug_dbug="+d,simulate_disk_full_at_flush_pending";
28 INSERT INTO t1 SELECT a+256, CONCAT(a, "-", REPEAT("x", 200)) FROM t1;
29 ERROR HY000: Error writing file '<FILENAME>' (Errcode: 28 "No space left on device")
30 SET SESSION debug_dbug= @old_dbug;
31 SHOW STATUS LIKE "binlog_stmt_cache%";
32 Variable_name Value
33 Binlog_stmt_cache_disk_use 3
34 Binlog_stmt_cache_use 10
35 SELECT IF(COUNT(*) > 256 AND COUNT(*) < 512,
36 "ok",
37 CONCAT("ERROR! Row count ", COUNT(*), " not as expected for partially executed query"))
38 AS check_result
39 FROM t1;
40 check_result
41 ok
42 ALTER TABLE t1 COMMENT '<mumble>';
43 connection slave;
44 include/wait_for_slave_sql_error_and_skip.inc [errno=1590]
45 SELECT COUNT(*) FROM t1;
46 COUNT(*)
47 256
48 connection master;
49 SET GLOBAL binlog_stmt_cache_size= @save_binlog_stmt_cache_size;
50 DROP TABLE t1;
51 include/rpl_end.inc