Debian Codegraph @

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

raw
1 include/master-slave.inc
2 [connection master]
3 connection slave;
4 include/stop_slave.inc
5 SET @@global.slave_parallel_threads=4;
6 SET @@global.slave_parallel_mode=optimistic;
7 CHANGE MASTER TO master_use_gtid=slave_pos;
8 SET @@global.debug_dbug="+d,at_write_start_alter";
9 include/start_slave.inc
10 connection master;
11 SET @@session.binlog_alter_two_phase=true;
12 CREATE TABLE t1 (a INT) ENGINE=innodb;
13 include/save_master_gtid.inc
14 connection slave;
15 include/sync_with_master_gtid.inc
16 connection master;
17 SET @@session.gtid_domain_id=11;
18 ALTER TABLE t1 ADD COLUMN b int, algorithm=instant;
19 # START Alter having exclusive lock is waiting for the signal
20 connection slave;
21 # FTWRL is sent first to wait for SA
22 connection slave1;
23 FLUSH TABLES WITH READ LOCK;
24 # SA completes
25 connection slave;
26 set DEBUG_SYNC= "now signal alter_cont";
27 connection slave1;
28 connection slave;
29 # Release CA
30 connection slave1;
31 UNLOCK TABLES;
32 connection master;
33 connection slave;
34 SHOW CREATE TABLE t1;
35 Table Create Table
36 t1 CREATE TABLE `t1` (
37 `a` int(11) DEFAULT NULL,
38 `b` int(11) DEFAULT NULL
39 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
40 include/show_binlog_events.inc
41 Log_name Pos Event_type Server_id End_log_pos Info
42 slave-bin.000001 # Gtid # # GTID #-#-#
43 slave-bin.000001 # Query # # use `test`; CREATE TABLE t1 (a INT) ENGINE=innodb
44 slave-bin.000001 # Gtid # # GTID #-#-# START ALTER
45 slave-bin.000001 # Query # # use `test`; ALTER TABLE t1 ADD COLUMN b int, algorithm=instant
46 slave-bin.000001 # Gtid # # GTID #-#-# COMMIT ALTER id=#
47 slave-bin.000001 # Query # # use `test`; ALTER TABLE t1 ADD COLUMN b int, algorithm=instant
48 connection master;
49 DROP TABLE t1;
50 connection slave;
51 # cleanup
52 connection slave;
53 set DEBUG_SYNC = RESET;
54 include/stop_slave.inc
55 set global slave_parallel_threads = 0;
56 set global slave_parallel_mode = optimistic;
57 set @@global.debug_dbug = "";
58 include/start_slave.inc
59 include/rpl_end.inc