Commit fa52846b authored by Teemu Ollakka's avatar Teemu Ollakka Committed by Jan Lindström

MDEV-18631 Added MTR test

The test is based in the testcase attached in Jira MDEV.
parent 47b7ca62
connection node_2;
connection node_1;
# On node_1
connection node_1;
CREATE TABLE t1(f1 INT PRIMARY KEY) ENGINE=INNODB;
INSERT INTO t1 VALUES (1), (2), (3);
connection node_2;
SELECT * FROM t1;
f1
1
2
3
connection node_1;
SELECT * FROM t1;
f1
1
2
3
DROP TABLE t1;
disconnect node_2;
disconnect node_1;
!include ../galera_2nodes.cnf
[mysqld]
log-bin
log-slave-updates
log-bin-compress
[mysqld.1]
#gtid_domain_id=1
wsrep_gtid_mode=ON
# Maximum allowed wsrep_gtid_domain_id.
wsrep_gtid_domain_id=4294967295
wsrep_trx_fragment_size=1
wsrep_trx_fragment_unit='ROWS'
[mysqld.2]
#gtid_domain_id=2
wsrep_gtid_mode=ON
wsrep_gtid_domain_id=4294967295
wsrep_trx_fragment_size=1
wsrep_trx_fragment_unit='ROWS'
#wsrep_gitd_domain_id value will be inherited from donor node (mysqld.1)
#wsrep_gitd_domain_id=X
#
# Test that streaming replication works with wsrep_gtid_mode=ON.
# The configuration is provided in mdev_18631.cnf.
#
--source include/galera_cluster.inc
--source include/have_innodb.inc
--echo # On node_1
--connection node_1
CREATE TABLE t1(f1 INT PRIMARY KEY) ENGINE=INNODB;
INSERT INTO t1 VALUES (1), (2), (3);
--connection node_2
SELECT * FROM t1;
--connection node_1
SELECT * FROM t1;
DROP TABLE t1;
--source include/galera_end.inc
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment