Skip to content
Permalink
Browse files
MDEV-23587 : galera_3nodes.galera_var_dirty_reads2 MTR failed: 1047: …
…WSREP has not yet prepared node for application use

Add wait_condition tomake sure insert is replicated and server
is after isolation back on ready state.
  • Loading branch information
Jan Lindström committed Sep 11, 2020
1 parent bfd1ed5 commit bc2dbdb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
@@ -2,7 +2,7 @@ connection node_1;
connection node_2;
connection node_3;
connection node_1;
CREATE TABLE t1 (f1 INTEGER);
CREATE TABLE t1 (f1 INTEGER) ENGINE=INNODB;
INSERT INTO t1 VALUES (1);
connection node_2;
SET GLOBAL wsrep_provider_options='gmcast.isolate=1';
@@ -16,10 +16,13 @@
--source ../galera/include/auto_increment_offset_save.inc

--connection node_1
CREATE TABLE t1 (f1 INTEGER);
CREATE TABLE t1 (f1 INTEGER) ENGINE=INNODB;
INSERT INTO t1 VALUES (1);

--connection node_2
--let $wait_condition = SELECT COUNT(*) = 1 FROM t1;
--source include/wait_condition.inc

SET GLOBAL wsrep_provider_options='gmcast.isolate=1';

--connection node_1
@@ -28,15 +31,11 @@ SET GLOBAL wsrep_provider_options='gmcast.isolate=1';

--connection node_2
SET SESSION wsrep_sync_wait = 0;

--let $wait_condition = SELECT VARIABLE_VALUE = 'non-Primary' FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_status';
--source include/wait_condition.inc

SET SESSION wsrep_dirty_reads = 1;

--let $wait_condition = SELECT COUNT(*) = 1 FROM t1;
--source include/wait_condition.inc

# Those statements should succeed

--error 0

0 comments on commit bc2dbdb

Please sign in to comment.