1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
|
include/group_replication.inc
Warnings:
Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
Note #### Storing MySQL user name or password information in the connection metadata repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START REPLICA; see the 'START REPLICA Syntax' in the MySQL Manual for more information.
[connection server1]
[connection server1]
include/start_and_bootstrap_group_replication.inc
[connection server2]
SET SESSION sql_log_bin=0;
call mtr.add_suppression("Member version is incompatible with the group.");
call mtr.add_suppression("Member version is read compatible with the group.");
SET SESSION sql_log_bin=1;
SET @debug_save= @@GLOBAL.DEBUG;
# 1. Lower version do not join the group.
# 1.1. Make M2 major version lower and make sure START GR fails.
SET @@GLOBAL.DEBUG= 'd,group_replication_compatibility_lower_major_version';
SET GLOBAL group_replication_group_name= "GROUP_REPLICATION_GROUP_NAME";
START GROUP_REPLICATION;
ERROR HY000: The server is not configured properly to be an active member of the group. Please see more details on error log.
include/assert.inc [Assert M2 is OFFLINE.]
# 1.2. Make M2 minor version lower and make sure START GR fails.
SET @@GLOBAL.DEBUG= 'd,group_replication_compatibility_lower_minor_version';
START GROUP_REPLICATION;
ERROR HY000: The server is not configured properly to be an active member of the group. Please see more details on error log.
include/assert.inc [Assert M2 is OFFLINE.]
# 1.3. Make M2 patch version lower and make sure START GR succeeds
# because both versions are 8.0 and >= 8.0.35.
SET @@GLOBAL.DEBUG= 'd,group_replication_compatibility_lower_patch_version';
include/start_group_replication.inc
include/gr_assert_mpm_consistency.inc
include/stop_group_replication.inc
# 2. Higher version are in read-only mode.
# 2.1. Make M2 major version higher and assert read-only is set.
SET @@GLOBAL.DEBUG= 'd,group_replication_compatibility_higher_major_version';
include/start_group_replication.inc
include/gr_assert_mpm_consistency.inc
# 2.2. Make M2 minor version higher and assert read-only is set.
[connection server2]
include/stop_group_replication.inc
SET @@GLOBAL.DEBUG= 'd,group_replication_compatibility_higher_minor_version';
include/start_group_replication.inc
include/gr_assert_mpm_consistency.inc
# 2.3. Make M2 patch version higher and assert read-only is set.
[connection server2]
include/stop_group_replication.inc
SET @@GLOBAL.DEBUG= 'd,group_replication_compatibility_higher_patch_version';
include/start_group_replication.inc
include/gr_assert_mpm_consistency.inc
# 3. Make M2 version same as M1 and confirm both M1 and M2 are online.
# Assert read-only is disabled on M2.
[connection server2]
include/stop_group_replication.inc
include/gr_assert_mpm_consistency.inc
SET @@GLOBAL.DEBUG= @debug_save;
include/start_group_replication.inc
include/gr_assert_mpm_consistency.inc
# 4. Cleanup.
include/group_replication_end.inc
|