| 1 |
################################################################################ |
| 2 |
# |
| 3 |
# This test verifies that by default group_view_change_uuid shall not have an |
| 4 |
# uuid and Group Replication will use group name to write View_change_log_event |
| 5 |
# to binary log |
| 6 |
# |
| 7 |
# Test: |
| 8 |
# 0. The test requires two servers |
| 9 |
# 1. If group_replication_view_change_uuid is configured as |
| 10 |
# "AUTOMATIC" it will use group_replication_group_name to |
| 11 |
# log view change. Check on server 1 |
| 12 |
# 2. If group_replication_view_change_uuid is configured as |
| 13 |
# "AUTOMATIC" it will use group_replication_group_name to |
| 14 |
# log view change. Check on server 2 |
| 15 |
################################################################################ |
| 16 |
|
| 17 |
--source include/have_group_replication_plugin.inc |
| 18 |
--source include/group_replication.inc |
| 19 |
|
| 20 |
--echo ############################################################ |
| 21 |
--echo # 1. If group_replication_view_change_uuid is configured as |
| 22 |
--echo # "AUTOMATIC" it will use group_replication_group_name to |
| 23 |
--echo # log view change. Check on server 1 |
| 24 |
|
| 25 |
--let $assert_text= group_replication_group_replication_view_change_uuid is AUTOMATIC |
| 26 |
--let $assert_cond= "[SELECT @@GLOBAL.group_replication_view_change_uuid]" = "AUTOMATIC" |
| 27 |
--source include/assert.inc |
| 28 |
|
| 29 |
--let $assert_text= group_replication_group_name used when group_replication_view_change_uuid is AUTOMATIC |
| 30 |
--let $assert_cond= "[SELECT @@GLOBAL.GTID_EXECUTED]" = "$group_replication_group_name:1-2" |
| 31 |
--source include/assert.inc |
| 32 |
|
| 33 |
--echo ############################################################ |
| 34 |
--echo # 2. If group_replication_view_change_uuid is configured as |
| 35 |
--echo # "AUTOMATIC" it will use group_replication_group_name to |
| 36 |
--echo # log view change. Check on server 2 |
| 37 |
|
| 38 |
--let $rpl_connection_name= server2 |
| 39 |
--source include/rpl_connection.inc |
| 40 |
|
| 41 |
--let $assert_text= group_replication_group_replication_view_change_uuid is AUTOMATIC |
| 42 |
--let $assert_cond= "[SELECT @@GLOBAL.group_replication_view_change_uuid]" = "AUTOMATIC" |
| 43 |
--source include/assert.inc |
| 44 |
|
| 45 |
--let $assert_text= group_replication_group_name used when group_replication_view_change_uuid is AUTOMATIC |
| 46 |
--let $assert_cond= "[SELECT @@GLOBAL.GTID_EXECUTED]" = "$group_replication_group_name:1-2" |
| 47 |
--source include/assert.inc |
| 48 |
|
| 49 |
--source include/group_replication_end.inc |