mirror of
https://github.com/MariaDB/server.git
synced 2025-10-12 12:25:37 +03:00
MDEV-18631 Added MTR test
The test is based in the testcase attached in Jira MDEV.
This commit is contained in:
committed by
Jan Lindström
parent
47b7ca629f
commit
fa52846bc7
21
mysql-test/suite/galera_sr/r/mdev_18631.result
Normal file
21
mysql-test/suite/galera_sr/r/mdev_18631.result
Normal file
@@ -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;
|
23
mysql-test/suite/galera_sr/t/mdev_18631.cnf
Normal file
23
mysql-test/suite/galera_sr/t/mdev_18631.cnf
Normal file
@@ -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
|
24
mysql-test/suite/galera_sr/t/mdev_18631.test
Normal file
24
mysql-test/suite/galera_sr/t/mdev_18631.test
Normal file
@@ -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
|
Reference in New Issue
Block a user