Debian Codegraph @

mysql-test/suite/galera_3nodes/t/galera_ipv6_mariabackup_section.test

raw
1 --let galera_connection_address=::1
2 --source include/big_test.inc
3 --source include/galera_cluster.inc
4 --source include/check_ipv6.inc
5 --source include/have_innodb.inc
6 --source include/have_mariabackup.inc
7 --source include/force_restart.inc
8
9 # Confirm that initial handshake happened over ipv6
10
11 SELECT VARIABLE_VALUE LIKE '%[::1]%' FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_incoming_addresses';
12 SELECT VARIABLE_VALUE = 3 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size';
13
14 # Force IST
15
16 --connection node_2
17 SET GLOBAL wsrep_provider_options='gmcast.isolate=1';
18
19 --connection node_1
20 --let $wait_condition = SELECT VARIABLE_VALUE = 2 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size';
21 --source include/wait_condition.inc
22
23 CREATE TABLE t1 (f1 INTEGER NOT NULL PRIMARY KEY) ENGINE=InnoDB;
24 INSERT INTO t1 VALUES (1);
25
26 --connection node_2
27 SET GLOBAL wsrep_provider_options='gmcast.isolate=0';
28
29 --let $wait_condition = SELECT VARIABLE_VALUE = 3 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size';
30 --source include/wait_condition.inc
31
32 --let $wait_condition = SELECT VARIABLE_VALUE = 'ON' FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_ready';
33 --source include/wait_condition.inc
34
35 SELECT COUNT(*) AS EXPECT_1 FROM t1;
36
37 DROP TABLE t1;
38
39 # Confirm that key messages around SST and IST reference IPv6
40
41 --connection node_1
42 --let $assert_file = $MYSQLTEST_VARDIR/log/mysqld.1.err
43 --let $assert_only_after = CURRENT_TEST
44
45 # The SSTs happen when nodes are started first time
46 --let $assert_count = 2
47 --let $assert_text = Streaming the backup to joiner at \[::1\]
48 --let $assert_select = Streaming the backup to joiner at \[::1\]
49 --source include/assert_grep.inc
50
51 # There will be 3 ISTs donated from node_1 in Galera 4.
52 # Two first happen at the initial startup to populate the certification
53 # index. The third one is from the IST which happens during the actual test.
54 --let $assert_count = 3
55 --let $assert_text = async IST sender starting to serve tcp://\[::1\]:
56 --let $assert_select = async IST sender starting to serve tcp://\[::1\]:
57 --source include/assert_grep.inc
58
59 --connection node_2
60 --let $assert_file = $MYSQLTEST_VARDIR/log/mysqld.2.err
61 --let $assert_only_after = CURRENT_TEST
62
63 # There are two ISTs on joiner, the first at the initial startup, the second
64 # during the actual test.
65 --let $assert_count = 2
66 --let $assert_text = IST receiver addr using tcp://\[::1\]
67 --let $assert_select = IST receiver addr using tcp://\[::1\]
68 --source include/assert_grep.inc
69
70 # The receiver expects IST
71 --let $assert_count = 2
72 --let $assert_text = , listening at: tcp://\[::1\]
73 --let $assert_select = , listening at: tcp://\[::1\]
74 --source include/assert_grep.inc