Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
MDEV-18631 Added MTR test
The test is based in the testcase attached in Jira MDEV.
- Loading branch information
Showing
3 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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 |