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
1ab7dfe5
Commit
1ab7dfe5
authored
Oct 04, 2012
by
Elena Stepanova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix multi-source replication tests for ps-protocol (different xid values), and disable for embedded
parent
0ae6ee55
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
37 additions
and
8 deletions
+37
-8
mysql-test/suite/multi_source/info_logs.test
mysql-test/suite/multi_source/info_logs.test
+2
-0
mysql-test/suite/multi_source/multisource.result
mysql-test/suite/multi_source/multisource.result
+4
-4
mysql-test/suite/multi_source/multisource.test
mysql-test/suite/multi_source/multisource.test
+10
-2
mysql-test/suite/multi_source/relaylog_events.test
mysql-test/suite/multi_source/relaylog_events.test
+2
-0
mysql-test/suite/multi_source/reset_slave.test
mysql-test/suite/multi_source/reset_slave.test
+6
-1
mysql-test/suite/multi_source/simple.test
mysql-test/suite/multi_source/simple.test
+2
-0
mysql-test/suite/multi_source/skip_counter.test
mysql-test/suite/multi_source/skip_counter.test
+2
-0
mysql-test/suite/multi_source/status_vars.test
mysql-test/suite/multi_source/status_vars.test
+6
-0
mysql-test/suite/multi_source/syntax.test
mysql-test/suite/multi_source/syntax.test
+3
-1
No files found.
mysql-test/suite/multi_source/info_logs.test
View file @
1ab7dfe5
...
...
@@ -2,6 +2,8 @@
# Check log files with multi-source
#
--
source
include
/
not_embedded
.
inc
--
connect
(
slave
,
127.0
.
0.1
,
root
,,,
$SERVER_MYPORT_3
)
--
let
$datadir
=
`SELECT @@datadir`
...
...
mysql-test/suite/multi_source/multisource.result
View file @
1ab7dfe5
...
...
@@ -108,13 +108,13 @@ i f1
4 four
show relaylog events;
Log_name Pos Event_type Server_id End_log_pos Info
mysqld-relay-bin.000001 4 Format_desc 3 246 Server ver
: 10.0.0-MariaDB-debug-log, Binlog ver: 4
mysqld-relay-bin.000001 4 Format_desc 3 246 Server ver
sion
mysqld-relay-bin.000001 246 Rotate 3 296 mysqld-relay-bin.000002;pos=4
show relaylog events in 'mysqld-relay-bin.000002';
Log_name Pos Event_type Server_id End_log_pos Info
mysqld-relay-bin.000002 4 Format_desc 3 246 Server ver
: 10.0.0-MariaDB-debug-log, Binlog ver: 4
mysqld-relay-bin.000002 4 Format_desc 3 246 Server ver
sion
mysqld-relay-bin.000002 246 Rotate 2 0 master-bin.000001;pos=4
mysqld-relay-bin.000002 290 Format_desc 2 246 Server ver
: 10.0.0-MariaDB-debug-log, Binlog ver: 4
mysqld-relay-bin.000002 290 Format_desc 2 246 Server ver
sion
mysqld-relay-bin.000002 532 Binlog_checkpoint 2 286 master-bin.000001
mysqld-relay-bin.000002 572 Query 2 375 drop database if exists db2
mysqld-relay-bin.000002 661 Query 2 456 create database db2
...
...
@@ -122,7 +122,7 @@ mysqld-relay-bin.000002 742 Query 2 591 use `db2`; create table t1 (pk int auto_
mysqld-relay-bin.000002 877 Query 2 658 BEGIN
mysqld-relay-bin.000002 944 Intvar 2 686 INSERT_ID=1
mysqld-relay-bin.000002 972 Query 2 782 use `db2`; insert into t1 (f1) values (1),(2)
mysqld-relay-bin.000002 1068 Xid 2 809 COMMIT /* xid=
25
*/
mysqld-relay-bin.000002 1068 Xid 2 809 COMMIT /* xid=
<num>
*/
stop slave io_thread;
show status like 'Slave_running';
Variable_name Value
...
...
mysql-test/suite/multi_source/multisource.test
View file @
1ab7dfe5
#
# Test basic replication functionality
# in multi-source setup
#
--
source
include
/
not_embedded
.
inc
--
source
include
/
have_innodb
.
inc
--
connect
(
slave
,
127.0
.
0.1
,
root
,,,
$SERVER_MYPORT_3
)
...
...
@@ -57,9 +63,9 @@ select * from db1.t1;
# Check that relay logs are recognizable
--
replace_regex
/
Server
ver
:.*/
Server
version
/
--
replace_regex
/
Server
ver
:.*/
Server
version
/
/
xid
=
[
0
-
9
]
+/
xid
=<
num
>/
show
relaylog
events
;
--
replace_regex
/
Server
ver
:.*/
Server
version
/
--
replace_regex
/
Server
ver
:.*/
Server
version
/
/
xid
=
[
0
-
9
]
+/
xid
=<
num
>/
show
relaylog
events
in
'mysqld-relay-bin-master1.000002'
;
...
...
@@ -179,7 +185,9 @@ select * from db1.t1;
# This should show relay log events for the default master
# (the one with the empty name)
--
replace_regex
/
Server
ver
:.*/
Server
version
/
/
xid
=
[
0
-
9
]
+/
xid
=<
num
>/
show
relaylog
events
;
--
replace_regex
/
Server
ver
:.*/
Server
version
/
/
xid
=
[
0
-
9
]
+/
xid
=<
num
>/
show
relaylog
events
in
'mysqld-relay-bin.000002'
;
# Make sure we don't lose control over replication connections
...
...
mysql-test/suite/multi_source/relaylog_events.test
View file @
1ab7dfe5
...
...
@@ -3,6 +3,8 @@
# for a named master connection
#
--
source
include
/
not_embedded
.
inc
--
connect
(
slave
,
127.0
.
0.1
,
root
,,,
$SERVER_MYPORT_3
)
--
replace_result
$SERVER_MYPORT_1
MYPORT_1
...
...
mysql-test/suite/multi_source/reset_slave.test
View file @
1ab7dfe5
#--enable_connect_log
#
# Check RESET SLAVE [name] [ALL] for multi-source replication
#
--
source
include
/
not_embedded
.
inc
--
connect
(
slave
,
127.0
.
0.1
,
root
,,,
$SERVER_MYPORT_3
)
--
replace_result
$SERVER_MYPORT_1
MYPORT_1
...
...
mysql-test/suite/multi_source/simple.test
View file @
1ab7dfe5
...
...
@@ -2,6 +2,8 @@
# Simple multi-master test
#
--
source
include
/
not_embedded
.
inc
--
connect
(
slave
,
127.0
.
0.1
,
root
,,,
$SERVER_MYPORT_3
)
--
connect
(
master1
,
127.0
.
0.1
,
root
,,,
$SERVER_MYPORT_1
)
--
connect
(
master2
,
127.0
.
0.1
,
root
,,,
$SERVER_MYPORT_2
)
...
...
mysql-test/suite/multi_source/skip_counter.test
View file @
1ab7dfe5
...
...
@@ -5,6 +5,8 @@
# Create a schema and a table i
# on the 1st master
--
source
include
/
not_embedded
.
inc
--
connect
(
master1
,
127.0
.
0.1
,
root
,,,
$SERVER_MYPORT_1
)
--
disable_warnings
...
...
mysql-test/suite/multi_source/status_vars.test
View file @
1ab7dfe5
#
# Status variables related to a replication connection
#
--
source
include
/
not_embedded
.
inc
--
connect
(
slave
,
127.0
.
0.1
,
root
,,,
$SERVER_MYPORT_3
)
call
mtr
.
add_suppression
(
"Connection 'master1' already exists"
);
...
...
mysql-test/suite/multi_source/syntax.test
View file @
1ab7dfe5
# Test multi master syntax
source
include
/
master
-
slave
.
inc
;
--
source
include
/
not_embedded
.
inc
--
source
include
/
master
-
slave
.
inc
# Check syntax of multi source replication
...
...
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