Debian Codegraph @

mysql-test/suite/rpl/t/rpl_mdev13831.test

raw
1 --source include/have_debug.inc
2 --source include/have_innodb.inc
3 --source include/have_binlog_format_mixed.inc
4 --source include/master-slave.inc
5
6 --echo *** MDEV-13831: Assertion on event group missing XID/COMMIT event
7
8 --connection slave
9 --source include/stop_slave.inc
10 # Use non-GTID mode. In GTID mode, the IO thread will fail if it sees an
11 # incomplete event group after MDEV-27697 patch.
12 CHANGE MASTER TO Master_use_gtid= No;
13 --source include/start_slave.inc
14
15 --connection master
16 # The dbug injection below is only active in legacy mode.
17 SET @old_legacy= @@GLOBAL.binlog_legacy_event_pos;
18 SET GLOBAL binlog_legacy_event_pos= 1;
19 CREATE TABLE t1 (a INT) ENGINE=InnoDB;
20 INSERT INTO t1 VALUES (1);
21
22 --connection master1
23 SET @old_dbug= @@SESSION.debug_dbug;
24 SET SESSION debug_dbug = '+d,fail_binlog_write_1';
25 --error ER_ERROR_ON_WRITE
26 UPDATE t1 SET a = 2;
27 SET debug_dbug= @old_dbug;
28 --error ER_BAD_TABLE_ERROR
29 DROP TEMPORARY TABLE t1;
30
31 --connection master
32 CREATE TEMPORARY TABLE t1 (i INT) ENGINE=InnoDB;
33
34 --sync_slave_with_master
35
36 --connection master
37 SET GLOBAL binlog_legacy_event_pos= @old_legacy;
38 CALL mtr.add_suppression("Error writing file.*No space left on device");
39 DROP TEMPORARY TABLE t1;
40 DROP TABLE t1;
41 --source include/rpl_end.inc