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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
fd0aaad5
Commit
fd0aaad5
authored
Aug 12, 2015
by
Philip Stoev
Committed by
Nirbhay Choubey
Sep 09, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Galera MTR Tests: Various test stability fixes (take #2)
parent
997119da
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
26 additions
and
13 deletions
+26
-13
mysql-test/suite/galera/r/galera_many_rows.result
mysql-test/suite/galera/r/galera_many_rows.result
+3
-1
mysql-test/suite/galera/r/galera_parallel_simple.result
mysql-test/suite/galera/r/galera_parallel_simple.result
+10
-7
mysql-test/suite/galera/t/galera_gcs_fc_limit.test
mysql-test/suite/galera/t/galera_gcs_fc_limit.test
+1
-0
mysql-test/suite/galera/t/galera_many_rows.test
mysql-test/suite/galera/t/galera_many_rows.test
+6
-2
mysql-test/suite/galera/t/galera_parallel_simple.test
mysql-test/suite/galera/t/galera_parallel_simple.test
+5
-3
mysql-test/suite/galera/t/galera_wan_restart_sst.test
mysql-test/suite/galera/t/galera_wan_restart_sst.test
+1
-0
No files found.
mysql-test/suite/galera/r/galera_many_rows.result
View file @
fd0aaad5
...
...
@@ -4,6 +4,9 @@ CREATE TABLE ten (f1 INTEGER);
INSERT INTO ten VALUES (1),(2),(3),(4),(5),(6),(7),(8),(9),(10);
CREATE TABLE t1 (f1 INTEGER AUTO_INCREMENT PRIMARY KEY, f2 INTEGER) Engine=InnoDB;
INSERT INTO t1 (f2) SELECT a1.f1 FROM ten AS a1, ten AS a2, ten AS a3, ten AS a4, ten AS a5;
SET SESSION wsrep_sync_wait = 0;
SET SESSION wsrep_sync_wait = 7;
SET GLOBAL wsrep_provider_options = 'repl.causal_read_timeout=PT1H';
SELECT COUNT(*) = 100000 FROM t1;
COUNT(*) = 100000
1
...
...
@@ -12,7 +15,6 @@ SELECT COUNT(*) = 200000 FROM t1;
COUNT(*) = 200000
1
UPDATE t1 SET f2 = 1;
SET GLOBAL wsrep_provider_options = 'repl.causal_read_timeout=PT5M';
SELECT COUNT(*) = 200000 FROM t1 WHERE f2 = 1;
COUNT(*) = 200000
1
...
...
mysql-test/suite/galera/r/galera_parallel_simple.result
View file @
fd0aaad5
...
...
@@ -13,13 +13,16 @@ INSERT INTO t1 VALUES (1);
INSERT INTO t2 VALUES (1);
INSERT INTO t1 VALUES (1);
INSERT INTO t2 VALUES (1);
SELECT COUNT(*) = 6 FROM t1;
COUNT(*) = 6
1
SELECT COUNT(*) = 6 FROM t2;
COUNT(*) = 6
1
SELECT COUNT(*) = 2 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE STATE LIKE 'closing tables';
SELECT COUNT(*) = 10 FROM t1;
COUNT(*) = 10
0
SELECT COUNT(*) = 10 FROM t2;
COUNT(*) = 10
0
SELECT COUNT(DISTINCT ID) FROM INFORMATION_SCHEMA.PROCESSLIST;
COUNT(DISTINCT ID)
4
SELECT COUNT(*) = 2 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE STATE LIKE 'committed%';
COUNT(*) = 2
1
SET GLOBAL wsrep_slave_threads = 1;;
...
...
mysql-test/suite/galera/t/galera_gcs_fc_limit.test
View file @
fd0aaad5
...
...
@@ -10,6 +10,7 @@ INSERT INTO t1 VALUES (1);
--
connection
node_2
SELECT
COUNT
(
*
)
=
1
FROM
t1
;
--
sleep
1
--
let
$wsrep_provider_options_orig
=
`SELECT @@wsrep_provider_options`
SET
GLOBAL
wsrep_provider_options
=
'gcs.fc_limit=1'
;
...
...
mysql-test/suite/galera/t/galera_many_rows.test
View file @
fd0aaad5
...
...
@@ -14,6 +14,12 @@ CREATE TABLE t1 (f1 INTEGER AUTO_INCREMENT PRIMARY KEY, f2 INTEGER) Engine=InnoD
INSERT
INTO
t1
(
f2
)
SELECT
a1
.
f1
FROM
ten
AS
a1
,
ten
AS
a2
,
ten
AS
a3
,
ten
AS
a4
,
ten
AS
a5
;
--
connection
node_2
SET
SESSION
wsrep_sync_wait
=
0
;
--
let
$wsrep_provider_options_node2
=
`SELECT @@wsrep_provider_options`
SET
SESSION
wsrep_sync_wait
=
7
;
SET
GLOBAL
wsrep_provider_options
=
'repl.causal_read_timeout=PT1H'
;
SELECT
COUNT
(
*
)
=
100000
FROM
t1
;
INSERT
INTO
t1
(
f2
)
SELECT
a1
.
f1
FROM
ten
AS
a1
,
ten
AS
a2
,
ten
AS
a3
,
ten
AS
a4
,
ten
AS
a5
;
...
...
@@ -22,8 +28,6 @@ SELECT COUNT(*) = 200000 FROM t1;
UPDATE
t1
SET
f2
=
1
;
--
connection
node_2
--
let
$wsrep_provider_options_node2
=
`SELECT @@wsrep_provider_options`
SET
GLOBAL
wsrep_provider_options
=
'repl.causal_read_timeout=PT5M'
;
SELECT
COUNT
(
*
)
=
200000
FROM
t1
WHERE
f2
=
1
;
--
connection
node_1
...
...
mysql-test/suite/galera/t/galera_parallel_simple.test
View file @
fd0aaad5
...
...
@@ -35,9 +35,11 @@ INSERT INTO t2 VALUES (1);
--
connection
node_2
SELECT
COUNT
(
*
)
=
6
FROM
t1
;
SELECT
COUNT
(
*
)
=
6
FROM
t2
;
SELECT
COUNT
(
*
)
=
2
FROM
INFORMATION_SCHEMA
.
PROCESSLIST
WHERE
STATE
LIKE
'closing tables'
;
SELECT
COUNT
(
*
)
=
10
FROM
t1
;
SELECT
COUNT
(
*
)
=
10
FROM
t2
;
SHOW
PROCESSLIST
;
SELECT
COUNT
(
DISTINCT
ID
)
FROM
INFORMATION_SCHEMA
.
PROCESSLIST
;
SELECT
COUNT
(
*
)
=
2
FROM
INFORMATION_SCHEMA
.
PROCESSLIST
WHERE
STATE
LIKE
'committed%'
;
--
eval
SET
GLOBAL
wsrep_slave_threads
=
$wsrep_slave_threads_orig
;
...
...
mysql-test/suite/galera/t/galera_wan_restart_sst.test
View file @
fd0aaad5
...
...
@@ -92,6 +92,7 @@ INSERT INTO t1 VALUES (34);
--
sleep
5
--
connection
node_1
--
source
include
/
wait_until_connected_again
.
inc
INSERT
INTO
t1
VALUES
(
31
);
--
connection
node_2
...
...
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