Debian Codegraph @

mysql-test/suite/galera/t/GAL-419.test

raw
1 #
2 # GAL-419 safe_to_bootstrap: boostrap using wsrep_cluster_address=gcomm:// not prevented
3 #
4
5 --source include/galera_cluster.inc
6 --source include/big_test.inc
7
8 call mtr.add_suppression("WSREP: It may not be safe to bootstrap the cluster from this node");
9 call mtr.add_suppression("Aborting");
10 call mtr.add_suppression("Plugin 'wsrep' init function returned error");
11 call mtr.add_suppression("Plugin 'wsrep' registration as a STORAGE ENGINE failed");
12 call mtr.add_suppression("Plugin 'wsrep' registration as a FUNCTION failed");
13 call mtr.add_suppression("Failed to initialize plugins");
14
15 --connection node_2
16 SET SESSION wsrep_sync_wait = 0;
17 --source include/kill_galera.inc
18
19 --connection node_1
20 SET SESSION wsrep_sync_wait = 0;
21 --source include/kill_galera.inc
22
23 --sleep 2
24
25 # Node #1 has wsrep_cluster_address=gcomm:// in my.cnf, so should fail to bootstrap
26
27 --error 1
28 --exec $MYSQLD --defaults-group-suffix=.1 --defaults-file=$MYSQLTEST_VARDIR/my.cnf | grep 'This node is not safe to bootstrap the cluster'
29
30 # Unless we remove grastate.dat
31
32 --remove_file $MYSQLTEST_VARDIR/mysqld.1/data/grastate.dat
33 --remove_file $MYSQLTEST_VARDIR/mysqld.2/data/grastate.dat
34
35 --connection node_1
36 --let $_expect_file_name= $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
37 --source include/start_mysqld.inc
38 --source include/wait_until_connected_again.inc
39
40 --connection node_2
41 --let $_expect_file_name= $MYSQLTEST_VARDIR/tmp/mysqld.2.expect
42 --source include/start_mysqld.inc