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
5609020c
Commit
5609020c
authored
Jun 02, 2016
by
Philip Stoev
Committed by
Nirbhay Choubey
Aug 21, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Galera MTR Tests: fortify galera_parallel_simple.test against sporadic failures
parent
1cb01fe7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
4 deletions
+16
-4
mysql-test/suite/galera/r/galera_parallel_simple.result
mysql-test/suite/galera/r/galera_parallel_simple.result
+4
-3
mysql-test/suite/galera/t/galera_parallel_simple.test
mysql-test/suite/galera/t/galera_parallel_simple.test
+12
-1
No files found.
mysql-test/suite/galera/r/galera_parallel_simple.result
View file @
5609020c
CREATE TABLE t1 (id INT) ENGINE=InnoDB;
CREATE TABLE t2 (id INT) ENGINE=InnoDB;
SET GLOBAL wsrep_slave_threads = 2;
LOCK TABLE t1 WRITE;
INSERT INTO t1 VALUES (1);
INSERT INTO t2 VALUES (1);
INSERT INTO t1 VALUES (1);
...
...
@@ -13,15 +14,15 @@ INSERT INTO t1 VALUES (1);
INSERT INTO t2 VALUES (1);
INSERT INTO t1 VALUES (1);
INSERT INTO t2 VALUES (1);
SET SESSION wsrep_sync_wait = 0;
UNLOCK TABLES;
SET SESSION wsrep_sync_wait = 7;
SELECT COUNT(*) = 10 FROM t1;
COUNT(*) = 10
0
SELECT COUNT(*) = 10 FROM t2;
COUNT(*) = 10
0
SELECT COUNT(*) = 2 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE STATE LIKE 'committed%';
COUNT(*) = 2
1
SET GLOBAL wsrep_slave_threads = 1;;
DROP TABLE t1;
DROP TABLE t2;
mysql-test/suite/galera/t/galera_parallel_simple.test
View file @
5609020c
...
...
@@ -13,6 +13,7 @@ CREATE TABLE t2 (id INT) ENGINE=InnoDB;
--
connection
node_2
SET
GLOBAL
wsrep_slave_threads
=
2
;
LOCK
TABLE
t1
WRITE
;
--
connection
node_1
INSERT
INTO
t1
VALUES
(
1
);
...
...
@@ -34,10 +35,20 @@ INSERT INTO t1 VALUES (1);
INSERT
INTO
t2
VALUES
(
1
);
--
connection
node_2
SET
SESSION
wsrep_sync_wait
=
0
;
--
let
$wait_condition
=
SELECT
COUNT
(
*
)
=
1
FROM
INFORMATION_SCHEMA
.
PROCESSLIST
WHERE
STATE
LIKE
'Waiting for table metadata lock%'
;
--
source
include
/
wait_condition
.
inc
--
let
$wait_condition
=
SELECT
COUNT
(
*
)
=
1
FROM
INFORMATION_SCHEMA
.
PROCESSLIST
WHERE
STATE
LIKE
'applied write set%'
;
--
source
include
/
wait_condition
.
inc
UNLOCK
TABLES
;
SET
SESSION
wsrep_sync_wait
=
7
;
SELECT
COUNT
(
*
)
=
10
FROM
t1
;
SELECT
COUNT
(
*
)
=
10
FROM
t2
;
SELECT
COUNT
(
*
)
=
2
FROM
INFORMATION_SCHEMA
.
PROCESSLIST
WHERE
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