Debian Codegraph @

mysql-test/suite/galera_sr/t/mysql-wsrep-features#9.test

raw
1 #
2 # mysql-wsrep-features#9 Hang in galera::ReplicatorSMM::cert with Streaming Replication
3 # when running the galera_kill_ddl.test test
4 #
5
6 --source include/galera_cluster.inc
7 --source include/have_innodb.inc
8 --source include/big_test.inc
9
10 --connection node_1
11
12 # Enable the master to continue running during the split-brain situation that
13 # occurs when the slave is killed
14 --let $wsrep_provider_options_orig = `SELECT @@wsrep_provider_options`
15 SET GLOBAL wsrep_provider_options = 'pc.ignore_sb=true';
16
17 SET SESSION wsrep_trx_fragment_size = 1;
18
19 CREATE TABLE t1 (f1 INTEGER) ENGINE=InnoDB;
20
21 --connection node_2
22 --source include/kill_galera.inc
23
24 --connection node_1
25 ALTER TABLE t1 ADD COLUMN f2 INTEGER;
26
27 --connection node_2
28 --source include/start_mysqld.inc
29 --source include/galera_wait_ready.inc
30
31 --let $galera_connection_name = node_2a
32 --let $galera_server_number = 2
33 --source include/galera_connect.inc
34 --connection node_2a
35
36 SELECT COUNT(*) = 2 FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME='t1';
37 SELECT VARIABLE_VALUE = 2 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size';
38
39 --connection node_1
40 --disable_query_log
41 --eval SET GLOBAL wsrep_provider_options = '$wsrep_provider_options_orig';
42 --enable_query_log
43
44 DROP TABLE t1;