Skip to content

Commit c779ef2

Browse files
committed
Fixed error in galera_vote_rejoin_ddl
The bug was that sometimes one get check errors like: -AUTO_INCREMENT_OFFSET 4 +AUTO_INCREMENT_OFFSET 3
1 parent f4ddde0 commit c779ef2

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
connection node_2;
22
connection node_1;
3+
connection node_1;
4+
connection node_2;
35
connect node_3, 127.0.0.1, root, , test, $NODE_MYPORT_3;
46
connection node_3;
57
SET GLOBAL wsrep_provider_options = 'gmcast.isolate = 1';

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,17 @@
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+
920
# Isolate node #3
1021
--connect node_3, 127.0.0.1, root, , test, $NODE_MYPORT_3
1122
--connection node_3
@@ -81,3 +92,5 @@ SELECT COUNT(*) AS expect_1 FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 't
8192
CALL mtr.add_suppression("WSREP: Vote 0 \\(success\\) on .* is inconsistent with group. Leaving cluster.");
8293

8394
DROP TABLE t2;
95+
96+
--source include/auto_increment_offset_restore.inc

0 commit comments

Comments
 (0)