Debian Codegraph @

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

raw
1 *** MDEV-7929: record_gtid() for non-transactional event group calls wakeup_subsequent_commits() too early, causing slave hang. ***
2 include/master-slave.inc
3 [connection master]
4 connection server_2;
5 SET @old_parallel_threads=@@GLOBAL.slave_parallel_threads;
6 include/stop_slave.inc
7 SET GLOBAL slave_parallel_threads=10;
8 CHANGE MASTER TO master_use_gtid=slave_pos;
9 include/start_slave.inc
10 connection server_1;
11 ALTER TABLE mysql.gtid_slave_pos ENGINE=InnoDB;
12 CREATE TABLE t1 (a int PRIMARY KEY) ENGINE=MyISAM;
13 CREATE TABLE t3 (a INT PRIMARY KEY, b INT) ENGINE=InnoDB;
14 connection server_2;
15 include/stop_slave.inc
16 SET @old_dbug= @@GLOBAL.debug_dbug;
17 SET GLOBAL debug_dbug= '+d,inject_record_gtid_serverid_100_sleep';
18 connection server_1;
19 SET @old_dbug= @@SESSION.debug_dbug;
20 SET SESSION debug_dbug="+d,binlog_force_commit_id";
21 SET @old_server_id= @@SESSION.server_id;
22 SET SESSION server_id= 100;
23 SET @commit_id= 10010;
24 ALTER TABLE t1 COMMENT "Hulubulu!";
25 SET SESSION server_id= @old_server_id;
26 INSERT INTO t3 VALUES (130, 0);
27 SET @commit_id= 10011;
28 INSERT INTO t3 VALUES (131, 0);
29 SET SESSION debug_dbug=@old_dbug;
30 SELECT * FROM t3 WHERE a >= 130 ORDER BY a;
31 a b
32 130 0
33 131 0
34 include/save_master_gtid.inc
35 connection server_2;
36 include/start_slave.inc
37 include/sync_with_master_gtid.inc
38 SELECT * FROM t3 WHERE a >= 130 ORDER BY a;
39 a b
40 130 0
41 131 0
42 include/stop_slave.inc
43 SET GLOBAL debug_dbug= @old_dbug;
44 SET GLOBAL slave_parallel_threads=@old_parallel_threads;
45 include/start_slave.inc
46 connection server_1;
47 DROP TABLE t1,t3;
48 include/rpl_end.inc