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