mirror of
https://github.com/MariaDB/server.git
synced 2025-01-30 10:31:54 +01:00
3fbd9f1522
Add proper wait condition when provider options are restored.
27 lines
670 B
Text
27 lines
670 B
Text
connection node_2;
|
|
connection node_1;
|
|
CREATE TABLE t1 (f1 INTEGER NOT NULL PRIMARY KEY AUTO_INCREMENT,B INTEGER) ENGINE=InnoDB;
|
|
INSERT INTO t1 VALUES (1,1);
|
|
connection node_2;
|
|
SELECT COUNT(*) FROM t1;
|
|
COUNT(*)
|
|
1
|
|
SET GLOBAL wsrep_provider_options = 'gcs.fc_limit=1';
|
|
LOCK TABLE t1 WRITE;
|
|
connection node_1;
|
|
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;
|
|
connection node_1a;
|
|
# In node_1 either insert or commit should be stuck
|
|
connection node_2;
|
|
UNLOCK TABLES;
|
|
connection node_1;
|
|
INSERT INTO t1 VALUES (NULL,6);
|
|
connection node_2;
|
|
SELECT COUNT(*) FROM t1;
|
|
COUNT(*)
|
|
9
|
|
DROP TABLE t1;
|