| 1 |
[connection server1] |
| 2 |
set session sql_log_bin=0; |
| 3 |
call mtr.add_suppression("Member server_uuid is incompatible with the group.*"); |
| 4 |
set session sql_log_bin=1; |
| 5 |
SET @debug_group_replication_local_address= @@GLOBAL.group_replication_local_address; |
| 6 |
|
| 7 |
######################## |
| 8 |
## FAILING SCENARIO ## |
| 9 |
######################## |
| 10 |
|
| 11 |
[connection server1] |
| 12 |
# restart:--group_replication_group_name=MEMBER_UUID --group_replication_bootstrap_group=ON --group_replication_local_address=GROUP_REPLICATION_LOCAL_ADDRESS --group_replication_start_on_boot=1 |
| 13 |
include/assert.inc ['Assert server1 do not join group when server_uuid and group_name are same.'] |
| 14 |
|
| 15 |
########################### |
| 16 |
## SUCCESSFUL SCENARIO ## |
| 17 |
########################### |
| 18 |
|
| 19 |
# restart:--group_replication_group_name=GROUP_REPLICATION_GROUP_NAME --group_replication_bootstrap_group=ON --group_replication_local_address=GROUP_REPLICATION_LOCAL_ADDRESS --group_replication_start_on_boot=1 |
| 20 |
include/assert.inc ['Assert server1 joins group when server_uuid and group_name are different.'] |
| 21 |
[connection server2] |
| 22 |
SET GLOBAL group_replication_bootstrap_group=OFF; |
| 23 |
include/start_group_replication.inc |
| 24 |
include/assert.inc ['Assert server2 joins group when server_uuid and group_name are different.'] |
| 25 |
|
| 26 |
############################ |
| 27 |
## VALIDATE ERROR LOGGED ## |
| 28 |
############################ |
| 29 |
|
| 30 |
include/assert_grep.inc [Found the expected error about server_uuid incompatible with the group_name] |
| 31 |
|
| 32 |
############### |
| 33 |
## Cleanup ## |
| 34 |
############### |
| 35 |
|
| 36 |
SET @@GLOBAL.group_replication_local_address= @debug_group_replication_local_address; |
| 37 |
include/stop_group_replication.inc |
| 38 |
[connection server1] |
| 39 |
include/stop_group_replication.inc |