Skip to content

Commit 2d790ef

Browse files
committed
BUG#35795873: gr_cross_version_member_join fails on 8.0.36
gr_cross_version_member_join fails on 8.0.36 on the section: ``` 76 --echo 77 --echo # 1.3. Make M2 patch version lower and make sure START GR fails. 78 79 SET @@GLOBAL.DEBUG= 'd,group_replication_compatibility_lower_patch_version'; 80 81 --error ER_GROUP_REPLICATION_CONFIGURATION 82 START GROUP_REPLICATION; ``` The server on the group (M1) is 8.0.36, the server joining (M2) is 8.0.35. After the patch BUG#35397276: "Relax GR member join version compatibility rules" that was pushed into 8.0.35, this is a valid scenario, that is, both servers are 8.0.35 or higher 8.0 patch version, thence considered compatible and M2 is allowed to join. To fix the test failure, the test is updated to the new behavior, a 8.0.35 server can join a 8.0.36 group. Change-Id: I5829266a25c55245218830bcb6305ab809a4cdc6
1 parent 861575b commit 2d790ef

File tree

2 files changed

+12
-13
lines changed

2 files changed

+12
-13
lines changed

mysql-test/suite/group_replication/r/gr_cross_version_member_join.result

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,12 @@ START GROUP_REPLICATION;
2828
ERROR HY000: The server is not configured properly to be an active member of the group. Please see more details on error log.
2929
include/assert.inc [Assert M2 is OFFLINE.]
3030

31-
# 1.3. Make M2 patch version lower and make sure START GR fails.
31+
# 1.3. Make M2 patch version lower and make sure START GR succeeds
32+
# because both versions are 8.0 and >= 8.0.35.
3233
SET @@GLOBAL.DEBUG= 'd,group_replication_compatibility_lower_patch_version';
33-
START GROUP_REPLICATION;
34-
ERROR HY000: The server is not configured properly to be an active member of the group. Please see more details on error log.
35-
include/assert.inc [Assert M2 is OFFLINE.]
34+
include/start_group_replication.inc
35+
include/gr_assert_mpm_consistency.inc
36+
include/stop_group_replication.inc
3637

3738
# 2. Higher version are in read-only mode.
3839

mysql-test/suite/group_replication/t/gr_cross_version_member_join.test

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
# 1. Lower version do not join the group.
1212
# 1.1. Make M2 major version lower and make sure START GR fails.
1313
# 1.2. Make M2 minor version lower and make sure START GR fails.
14-
# 1.3. Make M2 patch version lower and make sure START GR fails.
14+
# 1.3. Make M2 patch version lower and make sure START GR succeeds
15+
# because both versions are 8.0 and >= 8.0.35.
1516
# 2. Higher version are in read-only mode.
1617
# 2.1. Make M2 major version higher and assert read-only is set.
1718
# 2.2. Make M2 minor version higher and assert read-only is set.
@@ -74,16 +75,13 @@ START GROUP_REPLICATION;
7475
--source include/assert.inc
7576

7677
--echo
77-
--echo # 1.3. Make M2 patch version lower and make sure START GR fails.
78+
--echo # 1.3. Make M2 patch version lower and make sure START GR succeeds
79+
--echo # because both versions are 8.0 and >= 8.0.35.
7880

7981
SET @@GLOBAL.DEBUG= 'd,group_replication_compatibility_lower_patch_version';
80-
81-
--error ER_GROUP_REPLICATION_CONFIGURATION
82-
START GROUP_REPLICATION;
83-
84-
--let $assert_text= Assert M2 is OFFLINE.
85-
--let $assert_cond= [SELECT COUNT(*) FROM performance_schema.replication_group_members WHERE member_state="OFFLINE" AND member_id="$server2_uuid"] = 1
86-
--source include/assert.inc
82+
--source include/start_group_replication.inc
83+
--source include/gr_assert_mpm_consistency.inc
84+
--source include/stop_group_replication.inc
8785

8886
--echo
8987
--echo # 2. Higher version are in read-only mode.

0 commit comments

Comments
 (0)