mariadb/mysql-test/suite/galera/r/galera_gcs_fc_limit.result
Jan Lindström 3fbd9f1522 MDEV-20909 : Galera test failure on galera.galera_gcs_fc_limit: Server crash with signal 6
Add proper wait condition when provider options are restored.
2019-12-23 16:06:25 +02:00

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;