mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 20:07:13 +02:00
This patch makes two changes: * It replaces `--sleep 1` with appropriate wait_conditions, and removes another `--sleep 1` which is no longer necessary, after MDEV-14144 has been fixed. * It moves the `RESET MASTER` from node_1 at the very end, when it it sure that the other nodes have applied the the final cleanup `DROP TABLE t1,t2.` This solves the problem with the `DROP TABLE` not being replicated to the asynchronous slaves, which would make the test fail with: `Timeout in wait_condition.inc for SELECT COUNT(*) = 0 FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 't1';`
26 lines
609 B
Text
26 lines
609 B
Text
START SLAVE;
|
|
CREATE TABLE t1 (f1 INTEGER PRIMARY KEY) ENGINE=InnoDB;
|
|
CREATE TABLE t2 (f1 INTEGER PRIMARY KEY) ENGINE=InnoDB;
|
|
INSERT INTO t1 VALUES(1);
|
|
begin;
|
|
insert into t2 values(21);
|
|
insert into t2 values(22);
|
|
commit;
|
|
SELECT @@global.gtid_binlog_state;
|
|
@@global.gtid_binlog_state
|
|
1-1-4
|
|
INSERT INTO t1 VALUES(2);
|
|
INSERT INTO t1 VALUES(3);
|
|
SELECT @@global.gtid_binlog_state;
|
|
@@global.gtid_binlog_state
|
|
1-1-4,2-2-2
|
|
INSERT INTO t1 VALUES(4);
|
|
SELECT @@global.gtid_binlog_state;
|
|
@@global.gtid_binlog_state
|
|
1-1-4,2-2-2,2-3-3
|
|
DROP TABLE t1,t2;
|
|
STOP SLAVE;
|
|
RESET SLAVE ALL;
|
|
reset master;
|
|
reset master;
|
|
reset master;
|