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
5482d627
Commit
5482d627
authored
Oct 30, 2020
by
Jan Lindström
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix sporadic test failure on galera_parallel_apply_3nodes.
Test itself is not deterministic.
parent
a90b1583
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
5 deletions
+23
-5
mysql-test/suite/galera_3nodes/r/galera_parallel_apply_3nodes.result
...suite/galera_3nodes/r/galera_parallel_apply_3nodes.result
+9
-3
mysql-test/suite/galera_3nodes/t/galera_parallel_apply_3nodes.test
...t/suite/galera_3nodes/t/galera_parallel_apply_3nodes.test
+14
-2
No files found.
mysql-test/suite/galera_3nodes/r/galera_parallel_apply_3nodes.result
View file @
5482d627
...
...
@@ -7,12 +7,18 @@ UPDATE t1 SET f1 = f1 + 10;;
connection node_2;
UPDATE t1 SET f1 = f1 + 100;;
connection node_1;
SELECT COUNT(*) FROM t1;
COUNT(*)
1
connection node_2;
SELECT COUNT(*) FROM t1;
COUNT(*)
1
connection node_3;
SELECT
f1 = 111
FROM t1;
f1 = 111
SELECT
COUNT(*)
FROM t1;
COUNT(*)
1
SELECT COUNT(*) IN (1, 2) FROM INFORMATION_SCHEMA.PROCESSLIST WHERE USER = 'system user' AND STATE LIKE 'committed%';
SELECT COUNT(*) IN (1, 2) FROM INFORMATION_SCHEMA.PROCESSLIST WHERE USER = 'system user' AND STATE LIKE '
%
committed%';
COUNT(*) IN (1, 2)
1
SET GLOBAL wsrep_slave_threads = 1;;
...
...
mysql-test/suite/galera_3nodes/t/galera_parallel_apply_3nodes.test
View file @
5482d627
...
...
@@ -24,14 +24,26 @@ SET GLOBAL wsrep_slave_threads = 2;
--
send
UPDATE
t1
SET
f1
=
f1
+
100
;
--
connection
node_1
#
# Note that test is not deterministic. We have following cases possible
# (1) Both updates are certified locally and then executed by the applier
# (2) Certification of update in node_1 fails because applier has started
# update from node_2
# (3) Certification of update in node_2 fails because applier has started
# update from node_1
#
--
error
0
,
ER_LOCK_DEADLOCK
--
reap
SELECT
COUNT
(
*
)
FROM
t1
;
--
connection
node_2
--
error
0
,
ER_LOCK_DEADLOCK
--
reap
SELECT
COUNT
(
*
)
FROM
t1
;
--
connection
node_3
SELECT
f1
=
111
FROM
t1
;
SELECT
COUNT
(
*
)
IN
(
1
,
2
)
FROM
INFORMATION_SCHEMA
.
PROCESSLIST
WHERE
USER
=
'system user'
AND
STATE
LIKE
'committed%'
;
SELECT
COUNT
(
*
)
FROM
t1
;
SELECT
COUNT
(
*
)
IN
(
1
,
2
)
FROM
INFORMATION_SCHEMA
.
PROCESSLIST
WHERE
USER
=
'system user'
AND
STATE
LIKE
'
%
committed%'
;
--
eval
SET
GLOBAL
wsrep_slave_threads
=
$wsrep_slave_threads_orig
;
...
...
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