Skip to content

Commit 33e4fbf

Browse files
janlindstromsysprg
authored andcommitted
MDEV-33898 : Galera test failure on galera.MW-369
Additional changes for the galera_vote_rejoin_ddl test (for 10.5+). Signed-off-by: Julius Goryavsky <julius.goryavsky@mariadb.com>
1 parent bca366e commit 33e4fbf

File tree

3 files changed

+9
-20
lines changed

3 files changed

+9
-20
lines changed

mysql-test/suite/galera/r/galera_vote_rejoin_ddl.result

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
connection node_2;
22
connection node_1;
3-
connection node_1;
4-
connection node_2;
53
connect node_3, 127.0.0.1, root, , test, $NODE_MYPORT_3;
64
connect node_4, 127.0.0.1, root, , test, $NODE_MYPORT_4;
75
connection node_1;
@@ -55,6 +53,7 @@ expect_0
5553
SELECT COUNT(*) AS expect_1 FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 't2';
5654
expect_1
5755
1
56+
CALL mtr.add_suppression("WSREP: Vote 0 \\(success\\) on .* is inconsistent with group. Leaving cluster.");
5857
connection node_4;
5958
SELECT COUNT(*) AS expect_0 FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 't1';
6059
expect_0
@@ -64,3 +63,5 @@ expect_1
6463
1
6564
CALL mtr.add_suppression("WSREP: Vote 0 \\(success\\) on .* is inconsistent with group. Leaving cluster.");
6665
DROP TABLE t2;
66+
disconnect node_3;
67+
disconnect node_4;

mysql-test/suite/galera/t/galera_vote_rejoin_ddl.cnf

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,3 @@
22

33
[mysqld]
44
wsrep-ignore-apply-errors=0
5-
6-
[mysqld.3]
7-
auto_increment_offset=3
8-
9-
[mysqld.4]
10-
auto_increment_offset=4

mysql-test/suite/galera/t/galera_vote_rejoin_ddl.test

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,15 @@
66
--source include/galera_cluster.inc
77
--source include/big_test.inc
88

9-
# Save original auto_increment_offset values.
10-
--let $node_1=node_1
11-
--let $node_2=node_2
12-
--source include/auto_increment_offset_save.inc
13-
# The following has to be set hard as these connection doesn't yet exists and
14-
# the auto_increment_offset value changes during the lifetime of the servers.
15-
--let $node_3=node_3
16-
--let $auto_increment_offset_node_3 = 3;
17-
--let $node_4=node_4
18-
--let $auto_increment_offset_node_4 = 4;
19-
209
--connect node_3, 127.0.0.1, root, , test, $NODE_MYPORT_3
2110
--connect node_4, 127.0.0.1, root, , test, $NODE_MYPORT_4
2211

12+
# Save original auto_increment_offset values.
2313
--let $node_1=node_1
2414
--let $node_2=node_2
2515
--let $node_3=node_3
2616
--let $node_4=node_4
27-
--source suite/galera/include/auto_increment_offset_save.inc
17+
--source include/auto_increment_offset_save.inc
2818

2919
--connection node_3
3020
# Isolate node #3
@@ -92,6 +82,7 @@ CALL mtr.add_suppression("Slave SQL: Error 'Unknown table");
9282
--connection node_3
9383
SELECT COUNT(*) AS expect_0 FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 't1';
9484
SELECT COUNT(*) AS expect_1 FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 't2';
85+
CALL mtr.add_suppression("WSREP: Vote 0 \\(success\\) on .* is inconsistent with group. Leaving cluster.");
9586

9687
--connection node_4
9788
SELECT COUNT(*) AS expect_0 FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 't1';
@@ -101,3 +92,6 @@ CALL mtr.add_suppression("WSREP: Vote 0 \\(success\\) on .* is inconsistent with
10192
DROP TABLE t2;
10293

10394
--source suite/galera/include/auto_increment_offset_restore.inc
95+
96+
--disconnect node_3
97+
--disconnect node_4

0 commit comments

Comments
 (0)