mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 20:12:31 +01:00
53173709b3
Variable `wsrep_new_cluster` now will be TRUE also when there is only `gcomm://` used in configuration. This configuration, even without --wsrep-new-cluster, is considered to bootstrap new cluster. Updated galera GTID test to ignore warning message when non bootstrap node have server-id different thant one cluster is initialized with. Reviewed-by: Jan Lindström <jan.lindstrom@mariadb.com>
45 lines
1.1 KiB
Text
45 lines
1.1 KiB
Text
connection node_2;
|
|
connection node_1;
|
|
connect node_3, 127.0.0.1, root, , test, $NODE_MYPORT_3;
|
|
connection node_2;
|
|
START SLAVE;
|
|
connection node_3;
|
|
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
|
|
2-3-4
|
|
connection node_2;
|
|
INSERT INTO t1 VALUES(2);
|
|
INSERT INTO t1 VALUES(3);
|
|
SELECT @@global.gtid_binlog_state;
|
|
@@global.gtid_binlog_state
|
|
1-1-2,2-3-4
|
|
connection node_1;
|
|
INSERT INTO t1 VALUES(4);
|
|
SELECT @@global.gtid_binlog_state;
|
|
@@global.gtid_binlog_state
|
|
1-1-3,2-3-4
|
|
connection node_3;
|
|
DROP TABLE t1,t2;
|
|
connection node_2;
|
|
connection node_1;
|
|
connection node_2;
|
|
STOP SLAVE;
|
|
RESET SLAVE ALL;
|
|
SET GLOBAL wsrep_on=OFF;
|
|
reset master;
|
|
SET GLOBAL wsrep_on=ON;
|
|
connection node_1;
|
|
SET GLOBAL wsrep_on=OFF;
|
|
reset master;
|
|
SET GLOBAL wsrep_on=ON;
|
|
connection node_3;
|
|
reset master;
|
|
connection node_2;
|
|
CALL mtr.add_suppression("Ignoring server id for non bootstrap node");
|