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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
7dee7a03
Commit
7dee7a03
authored
Mar 05, 2015
by
Kristian Nielsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GTID: Add missing test of reconnecting into out-of-order binlog.
parent
3ef0b9b2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
72 additions
and
2 deletions
+72
-2
mysql-test/suite/rpl/r/rpl_gtid_basic.result
mysql-test/suite/rpl/r/rpl_gtid_basic.result
+22
-1
mysql-test/suite/rpl/t/rpl_gtid_basic.test
mysql-test/suite/rpl/t/rpl_gtid_basic.test
+50
-1
No files found.
mysql-test/suite/rpl/r/rpl_gtid_basic.result
View file @
7dee7a03
...
...
@@ -310,7 +310,7 @@ master_gtid_wait('2-1-10')
0
master_gtid_wait('2-1-10')
0
*** Test
sql_
gtid_slave_pos when used with GTID ***
*** Test gtid_slave_pos when used with GTID ***
include/stop_slave.inc
SET gtid_domain_id=2;
SET gtid_seq_no=1000;
...
...
@@ -413,5 +413,26 @@ SELECT IF(LOCATE("2-1-1040", @@GLOBAL.gtid_slave_pos)>0, "Ok", CONCAT("ERROR! ex
status
Ok
SET GLOBAL slave_ddl_exec_mode= @saved_mode;
*** Test GTID-connecting to a master with out-of-order sequence numbers in the binlog. ***
SET gtid_domain_id= @@GLOBAL.gtid_domain_id;
INSERT INTO t1 VALUES (31);
SET gtid_domain_id= @@GLOBAL.gtid_domain_id;
INSERT INTO t1 VALUES (32);
INSERT INTO t1 VALUES (33);
include/stop_slave.inc
INSERT INTO t1 VALUES (34);
include/start_slave.inc
SELECT * FROM t1 WHERE a >= 30 ORDER BY a;
a
31
32
33
34
SELECT * FROM t1 WHERE a >= 30 ORDER BY a;
a
31
32
33
34
DROP TABLE t1;
include/rpl_end.inc
mysql-test/suite/rpl/t/rpl_gtid_basic.test
View file @
7dee7a03
...
...
@@ -367,7 +367,7 @@ reap;
reap
;
--
echo
***
Test
sql_
gtid_slave_pos
when
used
with
GTID
***
--
echo
***
Test
gtid_slave_pos
when
used
with
GTID
***
--
connection
server_2
--
source
include
/
stop_slave
.
inc
...
...
@@ -481,6 +481,55 @@ SELECT IF(LOCATE("2-1-1040", @@GLOBAL.gtid_slave_pos)>0, "Ok", CONCAT("ERROR! ex
SET
GLOBAL
slave_ddl_exec_mode
=
@
saved_mode
;
--
echo
***
Test
GTID
-
connecting
to
a
master
with
out
-
of
-
order
sequence
numbers
in
the
binlog
.
***
# Create an out-of-order binlog on server 2.
# Let server 3 replicate to an out-of-order point, stop it, restart it,
# and check that it replicates correctly despite the out-of-order.
--
connection
server_1
SET
gtid_domain_id
=
@@
GLOBAL
.
gtid_domain_id
;
INSERT
INTO
t1
VALUES
(
31
);
--
save_master_pos
--
connection
server_2
--
sync_with_master
SET
gtid_domain_id
=
@@
GLOBAL
.
gtid_domain_id
;
INSERT
INTO
t1
VALUES
(
32
);
--
connection
server_1
INSERT
INTO
t1
VALUES
(
33
);
--
save_master_pos
--
connection
server_2
--
sync_with_master
--
save_master_pos
--
connection
server_3
--
sync_with_master
--
source
include
/
stop_slave
.
inc
--
connection
server_1
INSERT
INTO
t1
VALUES
(
34
);
--
save_master_pos
--
connection
server_2
--
sync_with_master
--
save_master_pos
--
connection
server_3
--
source
include
/
start_slave
.
inc
--
sync_with_master
SELECT
*
FROM
t1
WHERE
a
>=
30
ORDER
BY
a
;
--
save_master_pos
--
connection
server_4
SELECT
*
FROM
t1
WHERE
a
>=
30
ORDER
BY
a
;
--
sync_with_master
# Clean up.
--
connection
server_1
DROP
TABLE
t1
;
...
...
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