| 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 |
# - gtid_mode. It will be set to OFF in order to fail. |
| 8 |
# |
| 9 |
# Test: |
| 10 |
# 0. The test requires one server. |
| 11 |
# - Set gtid_mode to OFF in option file. |
| 12 |
# - Install plugin at startup. |
| 13 |
# 1. START GROUP_REPLICATION must fail due to GR incompatible gtid_mode. |
| 14 |
################################################################################ |
| 15 |
|
| 16 |
--source include/have_binlog_format_row.inc |
| 17 |
|
| 18 |
# The section below is present in "have_group_replication_plugin.inc." |
| 19 |
# But since this test is evaluating the absence of certain configurations, one |
| 20 |
# is not able to use that file since it enforces the existence of such |
| 21 |
# parameters in the server. |
| 22 |
|
| 23 |
if (`SELECT @@have_dynamic_loading != 'YES'`) { |
| 24 |
--skip Requires dynamic loading |
| 25 |
} |
| 26 |
|
| 27 |
if (!`select count(*) from information_schema.plugins where PLUGIN_NAME like 'group_replication'`) |
| 28 |
{ |
| 29 |
--skip Needs Group Replication plugin |
| 30 |
} |
| 31 |
|
| 32 |
--let $assert_text= Gtid Mode is disabled |
| 33 |
--let $assert_cond= "[SELECT @@GLOBAL.gtid_mode]" = "OFF" |
| 34 |
--source include/assert.inc |
| 35 |
|
| 36 |
--echo # |
| 37 |
--echo # Test if gtid_mode with the wrong value will fail. |
| 38 |
--echo # |
| 39 |
|
| 40 |
--error ER_GROUP_REPLICATION_CONFIGURATION |
| 41 |
START GROUP_REPLICATION; |
| 42 |
|
| 43 |
call mtr.add_suppression("Gtid mode should be ON for Group Replication"); |
| 44 |
|