Skip to content
Permalink
Browse files
MDEV-18631 Added MTR test
The test is based in the testcase attached in Jira MDEV.
  • Loading branch information
temeo authored and Jan Lindström committed Mar 4, 2019
1 parent 47b7ca6 commit fa52846
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 0 deletions.
@@ -0,0 +1,21 @@
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;
@@ -0,0 +1,23 @@
!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
@@ -0,0 +1,24 @@
#
# 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

0 comments on commit fa52846

Please sign in to comment.