Skip to content
Permalink
Browse files
MDEV-23591 : galera_3nodes.GCF-354 MTR failed: 1047: WSREP has not ye…
…t prepared node for application use

Stabilize test.
  • Loading branch information
Jan Lindström committed Sep 14, 2020
1 parent 5f2728d commit fd5cbbb
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 14 deletions.
@@ -1,17 +1,18 @@
connection node_2;
connection node_1;
connection node_2;
SET wsrep_on=OFF;
DROP SCHEMA test;
connect node_3, 127.0.0.1, root, , test, $NODE_MYPORT_3;
connection node_3;
connection node_1;
connection node_2;
connection node_3;
connection node_2;
SET wsrep_on=OFF;
CREATE TABLE test.t1 (f1 INTEGER);
DROP SCHEMA test;
connection node_3;
SET SESSION wsrep_on=OFF;
CREATE TABLE test.t1 (f1 INTEGER) engine=innodb;
connection node_1;
CREATE TABLE test.t1 (f1 INTEGER);
CREATE TABLE test.t1 (f1 INTEGER) engine=innodb;
SHOW STATUS LIKE 'wsrep_cluster_status';
Variable_name Value
wsrep_cluster_status Primary
@@ -1,11 +1,5 @@
--source include/galera_cluster.inc
--source include/have_innodb.inc
#
# 1. Create different inconsistencies on nodes 2 and 3
#
--connection node_2
SET wsrep_on=OFF;
DROP SCHEMA test;
--source include/force_restart.inc

--connect node_3, 127.0.0.1, root, , test, $NODE_MYPORT_3
--connection node_3
@@ -16,15 +10,23 @@ DROP SCHEMA test;
--let $node_3=node_3
--source ../galera/include/auto_increment_offset_save.inc

#
# 1. Create different inconsistencies on nodes 2 and 3
#
--connection node_2
SET wsrep_on=OFF;
CREATE TABLE test.t1 (f1 INTEGER);
DROP SCHEMA test;

--connection node_3
SET SESSION wsrep_on=OFF;
CREATE TABLE test.t1 (f1 INTEGER) engine=innodb;
#
# 2. The following should generate different errors on nodes 2 and 3 and
# trigger voting with 3 different votes. node_1 should remain alone
# in the cluster.
#
--connection node_1
CREATE TABLE test.t1 (f1 INTEGER);
CREATE TABLE test.t1 (f1 INTEGER) engine=innodb;

--let $wait_condition = SELECT VARIABLE_VALUE = 1 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size'
--source include/wait_condition.inc

0 comments on commit fd5cbbb

Please sign in to comment.