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
74cb1609
Commit
74cb1609
authored
Aug 06, 2021
by
Jan Lindström
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix test failure on galera_as_slave_replay by adding wait_conditions
parent
527be044
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
7 deletions
+23
-7
mysql-test/suite/galera/r/galera_as_slave_replay.result
mysql-test/suite/galera/r/galera_as_slave_replay.result
+14
-4
mysql-test/suite/galera/t/galera_as_slave_replay.test
mysql-test/suite/galera/t/galera_as_slave_replay.test
+9
-3
No files found.
mysql-test/suite/galera/r/galera_as_slave_replay.result
View file @
74cb1609
...
...
@@ -84,11 +84,21 @@ SET GLOBAL wsrep_provider_options = 'dbug=';
SET GLOBAL wsrep_provider_options = 'signal=commit_monitor_enter_sync';
SET DEBUG_SYNC = "RESET";
connection node_2a;
set session wsrep_sync_wait=15;
SELECT COUNT(*) = 1 FROM test.t1 WHERE f2 = 'e';
COUNT(*) = 1
1
set session wsrep_sync_wait=0;
SELECT * from test.t1;
f1 f2
1 a
2 b
3 e
4 d
connection node_1;
SELECT * from test.t1;
f1 f2
1 a
2 b
3 e
4 d
connection node_2a;
STOP SLAVE;
RESET SLAVE;
DROP TABLE t1;
...
...
mysql-test/suite/galera/t/galera_as_slave_replay.test
View file @
74cb1609
...
...
@@ -185,11 +185,17 @@ SET DEBUG_SYNC = "now SIGNAL signal.wsrep_apply_cb";
SET
DEBUG_SYNC
=
"RESET"
;
--
connection
node_2a
set
session
wsrep_sync_wait
=
15
;
SELECT
COUNT
(
*
)
=
1
FROM
test
.
t1
WHERE
f2
=
'e'
;
set
session
wsrep_sync_wait
=
0
;
--
let
$wait_condition
=
SELECT
COUNT
(
*
)
=
1
FROM
test
.
t1
where
f2
=
'e'
--
source
include
/
wait_condition
.
inc
SELECT
*
from
test
.
t1
;
--
connection
node_1
--
let
$wait_condition
=
SELECT
COUNT
(
*
)
=
1
FROM
test
.
t1
where
f2
=
'e'
--
source
include
/
wait_condition
.
inc
SELECT
*
from
test
.
t1
;
--
connection
node_2a
STOP
SLAVE
;
RESET
SLAVE
;
...
...
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