-
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-17061: Test failure on galera.galera_gcs_fc_limit
Remove unnecessary sleeps and fix wait_condition to use wsrep_flow_control_paused i.e. we wait until flow control pauses a transaction on master.
- Loading branch information
Jan Lindström
committed
May 17, 2019
1 parent
70a5fb4
commit 579c1a8
Showing
3 changed files
with
29 additions
and
29 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
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,17 +1,20 @@ | ||
CREATE TABLE t1 (f1 INTEGER) ENGINE=InnoDB; | ||
INSERT INTO t1 VALUES (1); | ||
SELECT COUNT(*) = 1 FROM t1; | ||
COUNT(*) = 1 | ||
CREATE TABLE t1 (f1 INTEGER NOT NULL PRIMARY KEY AUTO_INCREMENT,B INTEGER) ENGINE=InnoDB; | ||
INSERT INTO t1 VALUES (1,1); | ||
SET SESSION wsrep_sync_wait=15; | ||
SELECT COUNT(*) FROM t1; | ||
COUNT(*) | ||
1 | ||
SET GLOBAL wsrep_provider_options = 'gcs.fc_limit=1'; | ||
LOCK TABLE t1 WRITE; | ||
INSERT INTO t1 VALUES (2); | ||
INSERT INTO t1 VALUES (3); | ||
INSERT INTO t1 VALUES (4); | ||
INSERT INTO t1 VALUES (5); | ||
FLUSH STATUS; | ||
INSERT INTO t1 VALUES (2,2); | ||
INSERT INTO t1 VALUES (3,3); | ||
INSERT INTO t1 VALUES (4,4); | ||
INSERT INTO t1(B) SELECT B FROM t1; | ||
# In node_1 either insert or commit should be stuck | ||
UNLOCK TABLES; | ||
INSERT INTO t1 VALUES (6); | ||
SELECT COUNT(*) = 6 FROM t1; | ||
COUNT(*) = 6 | ||
1 | ||
INSERT INTO t1 VALUES (NULL,6); | ||
SELECT COUNT(*) FROM t1; | ||
COUNT(*) | ||
9 | ||
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