MINI MINI MANI MO

Path : /opt/mysql/mysql-test/suite/rpl/t/
File Upload :
Current File : //opt/mysql/mysql-test/suite/rpl/t/rpl_group_replication_start_stop_gr_error.test

# This test verifies that error thrown in during START/STOP group_replication
# are properly logged in the error log.
#

--source include/have_binlog_format_row.inc
--source include/not_group_replication_plugin.inc
--source include/master-slave.inc

# Start Group Replication without the plugin loaded
# It shall give a configuration error.
--error ER_GROUP_REPLICATION_CONFIGURATION
START GROUP_REPLICATION;

--echo # Asserting that the error log has the description of the error
--echo # happening in this case.
--let $grep_file=$MYSQLTEST_VARDIR/tmp/rpl_group_replication_start_stop_gr_error.err
--let $grep_pattern= Group Replication plugin is not installed.
--let $grep_output= print_count
--source include/grep_pattern.inc

# Stop Group Replication without the plugin loaded
# It shall give a configuration error.
--error ER_GROUP_REPLICATION_CONFIGURATION
STOP GROUP_REPLICATION;

--echo # Asserting that the error log has the description of the error
--echo # happening in this case.
--let $grep_file=$MYSQLTEST_VARDIR/tmp/rpl_group_replication_start_stop_gr_error.err
--let $grep_pattern= Group Replication plugin is not installed.
--let $grep_output= print_count
--source include/grep_pattern.inc

--source include/rpl_end.inc

OHA YOOOO