-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDEV-17062: Test failure on galera.MW-336
MDEV-17058: Test failure on wsrep.variables MDEV-17060: Test failure on galera.galera_var_slave_threads Fix incorrect calculation of increased applier (slave) threads. Note that increase change takes effect "immediately" but we should use proper wait condition to wait it. Reducing the number of slave threads is not immediate as thread will only exit after a replication event.
- Loading branch information
Jan Lindström
committed
Sep 6, 2018
1 parent
653038c
commit fba683c
Showing
10 changed files
with
145 additions
and
203 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,31 @@ | ||
CREATE TABLE t1 (f1 INTEGER) Engine=InnoDB; | ||
INSERT INTO t1 values(0); | ||
SET GLOBAL wsrep_slave_threads = 10; | ||
SET GLOBAL wsrep_slave_threads = 1; | ||
INSERT INTO t1 VALUES (1); | ||
# Wait 10 slave threads to start 1 | ||
# Generate 12 replication events | ||
SELECT COUNT(*) FROM t1; | ||
COUNT(*) | ||
13 | ||
# Wait 9 slave threads to exit 1 | ||
SET GLOBAL wsrep_slave_threads = 10; | ||
# Wait 10 slave threads to start 2 | ||
SET GLOBAL wsrep_slave_threads = 20; | ||
# Wait 20 slave threads to start 3 | ||
SET GLOBAL wsrep_slave_threads = 1; | ||
INSERT INTO t1 VALUES (1); | ||
INSERT INTO t1 VALUES (2); | ||
INSERT INTO t1 VALUES (3); | ||
INSERT INTO t1 VALUES (4); | ||
INSERT INTO t1 VALUES (5); | ||
INSERT INTO t1 VALUES (6); | ||
INSERT INTO t1 VALUES (7); | ||
INSERT INTO t1 VALUES (8); | ||
INSERT INTO t1 VALUES (9); | ||
# Generate 40 replication events | ||
SELECT COUNT(*) FROM t1; | ||
COUNT(*) | ||
53 | ||
# Wait 10 slave threads to exit 3 | ||
SET GLOBAL wsrep_slave_threads = 10; | ||
SET GLOBAL wsrep_slave_threads = 0; | ||
Warnings: | ||
Warning 1292 Truncated incorrect wsrep_slave_threads value: '0' | ||
INSERT INTO t1 VALUES (10); | ||
INSERT INTO t1 VALUES (11); | ||
INSERT INTO t1 VALUES (12); | ||
INSERT INTO t1 VALUES (13); | ||
INSERT INTO t1 VALUES (14); | ||
INSERT INTO t1 VALUES (15); | ||
INSERT INTO t1 VALUES (16); | ||
INSERT INTO t1 VALUES (17); | ||
INSERT INTO t1 VALUES (18); | ||
INSERT INTO t1 VALUES (19); | ||
INSERT INTO t1 VALUES (20); | ||
SET GLOBAL wsrep_slave_threads = 1; | ||
# Wait 10 slave threads to start 3 | ||
# Generate 12 replication events | ||
SELECT COUNT(*) FROM t1; | ||
COUNT(*) | ||
65 | ||
# Wait 10 slave threads to exit 4 | ||
DROP TABLE t1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.