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
ac891c61
Commit
ac891c61
authored
Oct 05, 2012
by
Elena Stepanova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extra check for synchronization in the multi-source replication test
parent
1ab7dfe5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
mysql-test/suite/multi_source/multisource.test
mysql-test/suite/multi_source/multisource.test
+8
-0
mysql-test/suite/multi_source/wait_for_sql_thread_read_all.inc
...-test/suite/multi_source/wait_for_sql_thread_read_all.inc
+6
-0
No files found.
mysql-test/suite/multi_source/multisource.test
View file @
ac891c61
...
...
@@ -26,6 +26,10 @@ set default_master_connection = 'master1';
--
connection
slave
--
sync_with_master
0
,
'master1'
# Here and further: add an extra check on SQL thread status
# as the normal sync is not always enough
--
source
wait_for_sql_thread_read_all
.
inc
# each of the 3 commands should produce
# 'master1' status
...
...
@@ -114,6 +118,8 @@ master_user='root';
start
slave
;
--
source
include
/
wait_for_slave_to_start
.
inc
--
source
wait_for_sql_thread_read_all
.
inc
# See both connections in the same status output
--
replace_result
$SERVER_MYPORT_1
MYPORT_1
$SERVER_MYPORT_2
MYPORT_2
...
...
@@ -177,6 +183,8 @@ create table db1.t3 (f1 int) engine=InnoDB;
--
connection
slave
--
sync_with_master
0
,
'master1'
--
source
wait_for_sql_thread_read_all
.
inc
--
replace_result
$SERVER_MYPORT_1
MYPORT_1
$SERVER_MYPORT_2
MYPORT_2
show
all
slaves
status
;
...
...
mysql-test/suite/multi_source/wait_for_sql_thread_read_all.inc
0 → 100644
View file @
ac891c61
--
let
$show_statement
=
show
all
slaves
status
--
let
$field
=
Slave_SQL_State
--
let
$condition
=
=
'Slave has read all relay log; waiting for the slave I/O thread to update it'
--
let
$wait_for_all
=
1
--
source
include
/
wait_show_condition
.
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