Debian Codegraph @

mysql-test/suite/group_replication/t/gr_delayed_initialization_thread_handler_error.test

raw
1 ################################################################################
2 # This test verifies that the error conditions are properly handled on the
3 # delayed_initialization_thread.
4 #
5 # Test:
6 # 0. The test requires one server: M1.
7 # 1. Bootstrap group on M1 injecting a error.
8 # 2. Assert check that the error was indeed thrown.
9 # 3. Clean up.
10 ################################################################################
11
12 --source include/big_test.inc
13 --source include/have_debug.inc
14 --source include/have_group_replication_plugin.inc
15 --source include/force_restart.inc
16 --let $rpl_skip_group_replication_start= 1
17 --source include/group_replication.inc
18
19
20 --echo
21 --echo ############################################################
22 --echo # 1. Restart server to force a error on
23 --echo # delayed_initialization_thread.
24 --let $allow_rpl_inited= 1
25 --let $_group_replication_local_address= `SELECT @@GLOBAL.group_replication_local_address`
26 --let $_group_replication_group_seeds= `SELECT @@GLOBAL.group_replication_group_seeds`
27 --let $restart_parameters=restart:--group_replication_group_name=$group_replication_group_name --group_replication_local_address=$_group_replication_local_address --group_replication_group_seeds=$_group_replication_group_seeds --group_replication_bootstrap_group=1 --group_replication_start_on_boot=1 --loose-debug="+d,group_replication_force_delayed_initialization_thread_handler_error"
28 --replace_result $group_replication_group_name GROUP_REPLICATION_GROUP_NAME $_group_replication_local_address GROUP_REPLICATION_LOCAL_ADDRESS $_group_replication_group_seeds GROUP_REPLICATION_GROUP_SEEDS
29 --source include/restart_mysqld.inc
30
31 # Needed as we are not using rpl_restart_server.inc
32 --let $rpl_server_number= 1
33 --source include/rpl_reconnect.inc
34
35
36 --echo
37 --echo ############################################################
38 --echo # 2. Member will be OFFLINE and there will a error on the
39 --echo # error log.
40 --let $wait_condition= SELECT COUNT(*)=1 FROM performance_schema.replication_group_members WHERE member_state="OFFLINE";
41 --source include/wait_condition_or_abort.inc
42
43 --let $grep_file=$MYSQLTEST_VARDIR/tmp/gr_delayed_initialization_thread_handler_error.1.error
44 --let $grep_pattern=Unable to start Group Replication. Replication applier infrastructure is not initialized since the server was started with --initialize, --initialize-insecure or --upgrade=MINIMAL on a server upgrade.
45 --let $grep_output= boolean
46 --source include/grep_pattern.inc
47
48
49 --echo
50 --echo ############################################################
51 --echo # 3. Clean up.
52 --source include/group_replication_end.inc