Debian Codegraph @

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

raw
1 include/master-slave.inc
2 [connection master]
3 connection master;
4 set @old_binlog_cache_size= @@global.binlog_cache_size;
5 set @@global.binlog_cache_size=4096;
6 CALL mtr.add_suppression('Error writing file');
7 #
8 # Initialize test data
9 connection master;
10 create table t1 (a int, b longtext default NULL) engine=innodb;
11 #
12 # Create transaction with cache data larger than the binlog_cache_size
13 # so it spills into a tmp file, then simulate ENOSPC while flushing
14 # the tmp file.
15 #
16 set @@session.debug_dbug="+d,simulate_binlog_tmp_file_no_space_left_on_flush";
17 insert into t1 values (2, repeat("y", 8192));
18 ERROR HY000: Error writing file '.../tmp/<FILENAME>' (Errcode: 28 "No space left on device")
19 set @@session.debug_dbug="";
20 #
21 # Create another transaction to make sure the server/replication can
22 # continue working normally after the error
23 #
24 insert into t1 values (3, repeat("z", 8192));
25 include/save_master_gtid.inc
26 connection slave;
27 include/sync_with_master_gtid.inc
28 include/diff_tables.inc [master:test.t1,slave:test.t1]
29 #
30 # Cleanup
31 connection master;
32 drop table t1;
33 include/save_master_gtid.inc
34 connection slave;
35 include/sync_with_master_gtid.inc
36 connection master;
37 set @@global.binlog_cache_size= @old_binlog_cache_size;
38 include/rpl_end.inc
39 # End of rpl_row_binlog_tmp_file_flush_enospc.test