| 1 |
# This test verifies that error thrown in during START/STOP group_replication |
| 2 |
# are properly logged in the error log. |
| 3 |
# |
| 4 |
|
| 5 |
--source include/have_binlog_format_row.inc |
| 6 |
--source include/not_group_replication_plugin.inc |
| 7 |
--source include/master-slave.inc |
| 8 |
|
| 9 |
# Start Group Replication without the plugin loaded |
| 10 |
# It shall give a configuration error. |
| 11 |
--error ER_GROUP_REPLICATION_CONFIGURATION |
| 12 |
START GROUP_REPLICATION; |
| 13 |
|
| 14 |
--echo # Asserting that the error log has the description of the error |
| 15 |
--echo # happening in this case. |
| 16 |
--let $grep_file=$MYSQLTEST_VARDIR/tmp/rpl_group_replication_start_stop_gr_error.err |
| 17 |
--let $grep_pattern= Group Replication plugin is not installed. |
| 18 |
--let $grep_output= print_count |
| 19 |
--source include/grep_pattern.inc |
| 20 |
|
| 21 |
# Stop Group Replication without the plugin loaded |
| 22 |
# It shall give a configuration error. |
| 23 |
--error ER_GROUP_REPLICATION_CONFIGURATION |
| 24 |
STOP GROUP_REPLICATION; |
| 25 |
|
| 26 |
--echo # Asserting that the error log has the description of the error |
| 27 |
--echo # happening in this case. |
| 28 |
--let $grep_file=$MYSQLTEST_VARDIR/tmp/rpl_group_replication_start_stop_gr_error.err |
| 29 |
--let $grep_pattern= Group Replication plugin is not installed. |
| 30 |
--let $grep_output= print_count |
| 31 |
--source include/grep_pattern.inc |
| 32 |
|
| 33 |
--source include/rpl_end.inc |