Debian Codegraph @

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

raw
1 ################################################################################
2 # This test is to verify Bug #27522405
3 #
4 # Test:
5 # 0. The test requires one server. Persist binlog_checksum.
6 # 1. SET PERSIST GR specific variables.
7 # 2. Restart server, it must bootstrap the group
8 # 3. Clean up.
9 ################################################################################
10
11 --source include/big_test.inc
12 --source include/have_group_replication_plugin.inc
13 --let $rpl_skip_group_replication_start= 1
14 --source include/group_replication.inc
15
16 --echo
17 --echo ############################################################
18 --echo # 0. Persist binlog_checksum.
19 --let $rpl_connection_name= server1
20 --source include/rpl_connection.inc
21
22 SET PERSIST binlog_checksum= @@global.binlog_checksum;
23
24 --echo
25 --echo ############################################################
26 --echo # 1. SET PERSIST GR specific variables.
27 --replace_result $group_replication_group_name GROUP_REPLICATION_GROUP_NAME
28 --eval SET PERSIST group_replication_group_name= "$group_replication_group_name"
29 SET PERSIST group_replication_local_address= @@global.group_replication_local_address;
30 SET PERSIST group_replication_bootstrap_group= ON;
31 SET PERSIST group_replication_start_on_boot=ON;
32
33 --echo
34 --echo ############################################################
35 --echo # 2. Restart server, it must bootstrap the group
36 --let $allow_rpl_inited= 1
37 --source include/restart_mysqld.inc
38 --let $rpl_server_number= 1
39 --source include/rpl_reconnect.inc
40
41 --let $group_replication_member_state= ONLINE
42 --source include/gr_wait_for_member_state.inc
43
44
45 --echo
46 --echo ############################################################
47 --echo # 3. Clean up.
48 SET GLOBAL group_replication_start_on_boot= OFF;
49 SET GLOBAL group_replication_bootstrap_group= OFF;
50 RESET PERSIST;
51
52 --source include/group_replication_end.inc