Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
fa52846b
Commit
fa52846b
authored
Feb 21, 2019
by
Teemu Ollakka
Committed by
Jan Lindström
Mar 04, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-18631 Added MTR test
The test is based in the testcase attached in Jira MDEV.
parent
47b7ca62
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
68 additions
and
0 deletions
+68
-0
mysql-test/suite/galera_sr/r/mdev_18631.result
mysql-test/suite/galera_sr/r/mdev_18631.result
+21
-0
mysql-test/suite/galera_sr/t/mdev_18631.cnf
mysql-test/suite/galera_sr/t/mdev_18631.cnf
+23
-0
mysql-test/suite/galera_sr/t/mdev_18631.test
mysql-test/suite/galera_sr/t/mdev_18631.test
+24
-0
No files found.
mysql-test/suite/galera_sr/r/mdev_18631.result
0 → 100644
View file @
fa52846b
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;
mysql-test/suite/galera_sr/t/mdev_18631.cnf
0 → 100644
View file @
fa52846b
!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
mysql-test/suite/galera_sr/t/mdev_18631.test
0 → 100644
View file @
fa52846b
#
# 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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment