Debian Codegraph @

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

raw
1 ################################################################################
2 # Validate that when there is a timeout on member join, START
3 # GROUP REPLICATION command does throw a error properly.
4 #
5 # Test:
6 # 0. The test requires one server.
7 # 1. Set a DEBUG point to inject gcs join error to timeout a member join.
8 # 2. Start group replication on server. It should error out.
9 # 3. Clean up.
10 ################################################################################
11 --source include/big_test.inc
12 --source include/have_debug.inc
13 --source include/have_group_replication_plugin.inc
14 --let $rpl_skip_group_replication_start= 1
15 --source include/group_replication.inc
16
17 SET SESSION sql_log_bin= 0;
18 call mtr.add_suppression("Timeout on wait for view after joining group");
19 call mtr.add_suppression("Error. Leaving a group without being on one.");
20 SET SESSION sql_log_bin= 1;
21
22 SET @debug_save= @@GLOBAL.DEBUG;
23 SET @@GLOBAL.DEBUG='+d,group_replication_inject_gcs_join_error';
24 --disable_query_log
25 --eval SET GLOBAL group_replication_group_name= "$group_replication_group_name"
26 --enable_query_log
27
28 --error ER_GROUP_REPLICATION_CONFIGURATION
29 START GROUP_REPLICATION;
30
31 SET @@GLOBAL.DEBUG= @debug_saved;
32 --source include/group_replication_end.inc