Debian Codegraph @

mysql-test/suite/rpl/r/rpl_binlog_cache_disk_full_loaddata.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) 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 SET @old_dbug= @@SESSION.debug_dbug;
14 SET SESSION debug_dbug="+d,load_data_binlog_cache_error";
15 LOAD DATA CONCURRENT LOCAL INFILE 'std_data/bug30435_5k.txt'
16 REPLACE INTO TABLE t1 (a);
17 ERROR HY000: Error writing file '<FILENAME>' (Errcode: 28 "No space left on device")
18 SET SESSION debug_dbug= @old_dbug;
19 SHOW STATUS LIKE "binlog_stmt_cache%";
20 Variable_name Value
21 Binlog_stmt_cache_disk_use 1
22 Binlog_stmt_cache_use 1
23 SELECT IF(COUNT(*) > 0 AND COUNT(*) < 5000,
24 "ok",
25 CONCAT("ERROR! Row count ", COUNT(*), " not as expected for partially executed query"))
26 AS check_result
27 FROM t1;
28 check_result
29 ok
30 connection slave;
31 include/wait_for_slave_sql_error_and_skip.inc [errno=1590]
32 SELECT COUNT(*) FROM t1;
33 COUNT(*)
34 0
35 connection master;
36 SET GLOBAL binlog_stmt_cache_size= @save_binlog_stmt_cache_size;
37 DROP TABLE t1;
38 include/rpl_end.inc