| 1 |
################################################################################ |
| 2 |
# The intent of this test is to verify if the validations that were |
| 3 |
# created within the Group Replication plugin in the startup process |
| 4 |
# are fully functional. |
| 5 |
# |
| 6 |
# It will test the static variables: |
| 7 |
# - log_replica_updates. It will be set to OFF in order to fail. |
| 8 |
# |
| 9 |
# Test: |
| 10 |
# 0. The test requires one server. |
| 11 |
# - Set log_replica_updates to OFF in option file. |
| 12 |
# - Install plugin at startup. |
| 13 |
# 1. START GROUP_REPLICATION must fail due to GR incompatible log_replica_updates. |
| 14 |
################################################################################ |
| 15 |
|
| 16 |
--source include/have_group_replication_plugin.inc |
| 17 |
--let $rpl_skip_group_replication_start= 1 |
| 18 |
--source include/group_replication.inc |
| 19 |
|
| 20 |
SET SESSION sql_log_bin= 0; |
| 21 |
call mtr.add_suppression("LOG_REPLICA_UPDATES should be ON for Group Replication"); |
| 22 |
call mtr.add_suppression("replica_preserve_commit_order is not supported unless both log_bin and log_replica_updates are enabled."); |
| 23 |
SET SESSION sql_log_bin= 1; |
| 24 |
|
| 25 |
--let $assert_text= LOG_REPLICA_UPDATES is set to OFF |
| 26 |
--let $assert_cond= [SELECT @@GLOBAL.log_replica_updates] = 0 |
| 27 |
--source include/assert.inc |
| 28 |
|
| 29 |
--echo # |
| 30 |
--echo # Test if LOG_REPLICA_UPDATES with the wrong value will fail. |
| 31 |
--echo # |
| 32 |
|
| 33 |
--error ER_GROUP_REPLICATION_CONFIGURATION |
| 34 |
START GROUP_REPLICATION; |
| 35 |
|
| 36 |
--source include/group_replication_end.inc |