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
3422c13a
Commit
3422c13a
authored
Sep 11, 2019
by
Jan Lindström
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try to fix galera.MW-336 test case.
parent
40beeb14
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
12 deletions
+9
-12
mysql-test/suite/galera/r/MW-336.result
mysql-test/suite/galera/r/MW-336.result
+3
-5
mysql-test/suite/galera/t/MW-336.test
mysql-test/suite/galera/t/MW-336.test
+6
-7
No files found.
mysql-test/suite/galera/r/MW-336.result
View file @
3422c13a
...
...
@@ -6,10 +6,6 @@ SET GLOBAL wsrep_slave_threads = 1;
connection node_2;
INSERT INTO t1 VALUES (1);
connection node_1;
SET SESSION wsrep_sync_wait=15;
SELECT COUNT(*) FROM t1;
COUNT(*)
1
SET GLOBAL wsrep_slave_threads = 10;
# Set slave threads to 10 step 2
SET GLOBAL wsrep_slave_threads = 20;
...
...
@@ -43,9 +39,11 @@ INSERT INTO t1 VALUES (17);
INSERT INTO t1 VALUES (18);
INSERT INTO t1 VALUES (19);
INSERT INTO t1 VALUES (20);
INSERT INTO t1 VALUES (21);
INSERT INTO t1 VALUES (22);
connection node_1;
SELECT COUNT(*) FROM t1;
COUNT(*)
2
1
2
3
SET GLOBAL wsrep_slave_threads = 1;
DROP TABLE t1;
mysql-test/suite/galera/t/MW-336.test
View file @
3422c13a
...
...
@@ -13,7 +13,7 @@ SET GLOBAL wsrep_slave_threads = 10;
# ensure that the threads have actually started running
--
echo
# Set slave threads to 10 step 1
--
let
$wait_condition
=
SELECT
COUNT
(
*
)
=
10
FROM
INFORMATION_SCHEMA
.
PROCESSLIST
WHERE
USER
=
'system user'
AND
STATE
=
'wsrep applier idle
'
;
--
let
$wait_condition
=
SELECT
VARIABLE_VALUE
=
10
FROM
INFORMATION_SCHEMA
.
GLOBAL_STATUS
WHERE
VARIABLE_NAME
=
'wsrep_applier_thread_count
'
;
--
let
$wait_condition_on_error_output
=
SELECT
COUNT
(
*
),
10
as
EXPECTED_VALUE
FROM
INFORMATION_SCHEMA
.
PROCESSLIST
WHERE
USER
=
'system user'
AND
STATE
=
'wsrep applier idle'
;
show
processlist
--
source
include
/
wait_condition_with_debug
.
inc
...
...
@@ -23,20 +23,17 @@ SET GLOBAL wsrep_slave_threads = 1;
INSERT
INTO
t1
VALUES
(
1
);
--
connection
node_1
SET
SESSION
wsrep_sync_wait
=
15
;
SELECT
COUNT
(
*
)
FROM
t1
;
SET
GLOBAL
wsrep_slave_threads
=
10
;
--
echo
# Set slave threads to 10 step 2
--
let
$wait_condition
=
SELECT
COUNT
(
*
)
=
10
FROM
INFORMATION_SCHEMA
.
PROCESSLIST
WHERE
USER
=
'system user'
AND
STATE
=
'wsrep applier idle
'
;
--
let
$wait_condition
=
SELECT
VARIABLE_VALUE
=
10
FROM
INFORMATION_SCHEMA
.
GLOBAL_STATUS
WHERE
VARIABLE_NAME
=
'wsrep_applier_thread_count
'
;
--
let
$wait_condition_on_error_output
=
SELECT
COUNT
(
*
),
10
as
EXPECTED_VALUE
FROM
INFORMATION_SCHEMA
.
PROCESSLIST
WHERE
USER
=
'system user'
AND
STATE
=
'wsrep applier idle'
;
show
processlist
--
source
include
/
wait_condition_with_debug
.
inc
SET
GLOBAL
wsrep_slave_threads
=
20
;
--
echo
# Set slave threads to 20
--
let
$wait_condition
=
SELECT
COUNT
(
*
)
=
20
FROM
INFORMATION_SCHEMA
.
PROCESSLIST
WHERE
USER
=
'system user'
AND
STATE
=
'wsrep applier idle
'
;
--
let
$wait_condition
=
SELECT
VARIABLE_VALUE
=
20
FROM
INFORMATION_SCHEMA
.
GLOBAL_STATUS
WHERE
VARIABLE_NAME
=
'wsrep_applier_thread_count
'
;
--
let
$wait_condition_on_error_output
=
SELECT
COUNT
(
*
),
20
as
EXPECTED_VALUE
FROM
INFORMATION_SCHEMA
.
PROCESSLIST
WHERE
USER
=
'system user'
AND
STATE
=
'wsrep applier idle'
;
show
processlist
--
source
include
/
wait_condition_with_debug
.
inc
...
...
@@ -58,7 +55,7 @@ INSERT INTO t1 VALUES (10);
SET
GLOBAL
wsrep_slave_threads
=
10
;
SELECT
COUNT
(
*
)
FROM
t1
;
--
echo
# Set slave threads to 10 step 3
--
let
$wait_condition
=
SELECT
COUNT
(
*
)
=
10
FROM
INFORMATION_SCHEMA
.
PROCESSLIST
WHERE
USER
=
'system user'
AND
STATE
=
'wsrep applier idle
'
;
--
let
$wait_condition
=
SELECT
VARIABLE_VALUE
=
10
FROM
INFORMATION_SCHEMA
.
GLOBAL_STATUS
WHERE
VARIABLE_NAME
=
'wsrep_applier_thread_count
'
;
--
let
$wait_condition_on_error_output
=
SELECT
COUNT
(
*
),
10
as
EXPECTED_VALUE
FROM
INFORMATION_SCHEMA
.
PROCESSLIST
WHERE
USER
=
'system user'
AND
STATE
=
'wsrep applier idle'
;
show
processlist
--
source
include
/
wait_condition_with_debug
.
inc
...
...
@@ -73,6 +70,8 @@ INSERT INTO t1 VALUES (17);
INSERT
INTO
t1
VALUES
(
18
);
INSERT
INTO
t1
VALUES
(
19
);
INSERT
INTO
t1
VALUES
(
20
);
INSERT
INTO
t1
VALUES
(
21
);
INSERT
INTO
t1
VALUES
(
22
);
--
connection
node_1
SELECT
COUNT
(
*
)
FROM
t1
;
...
...
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