| 1 |
--let galera_connection_address=::1 |
| 2 |
--source include/galera_cluster.inc |
| 3 |
--source include/check_ipv6.inc |
| 4 |
--source include/force_restart.inc |
| 5 |
|
| 6 |
call mtr.add_suppression("WSREP: wsrep_sst_method is set to 'mysqldump' yet mysqld bind_address is set to '127\\.0\\.0\\.1'"); |
| 7 |
call mtr.add_suppression("Failed to load slave replication state from table mysql\\.gtid_slave_pos"); |
| 8 |
|
| 9 |
--let $galera_connection_name = node_3 |
| 10 |
--let $galera_server_number = 3 |
| 11 |
--source include/galera_connect.inc |
| 12 |
|
| 13 |
# Save original auto_increment_offset values. |
| 14 |
--let $node_1=node_1 |
| 15 |
--let $node_2=node_2 |
| 16 |
--let $node_3=node_3 |
| 17 |
--source ../galera/include/auto_increment_offset_save.inc |
| 18 |
|
| 19 |
--connection node_1 |
| 20 |
CREATE USER 'sst'; |
| 21 |
GRANT ALL PRIVILEGES ON *.* TO 'sst'; |
| 22 |
|
| 23 |
SET GLOBAL wsrep_sst_auth = 'sst:'; |
| 24 |
|
| 25 |
--connection node_2 |
| 26 |
--source include/wait_until_connected_again.inc |
| 27 |
--let $wsrep_sst_method_orig = `SELECT @@wsrep_sst_method` |
| 28 |
--let $wsrep_sst_receive_address_orig = `SELECT @@wsrep_sst_receive_address` |
| 29 |
|
| 30 |
--disable_query_log |
| 31 |
--eval SET GLOBAL wsrep_sst_receive_address = '[::1]:$NODE_MYPORT_2'; |
| 32 |
--enable_query_log |
| 33 |
SET GLOBAL wsrep_sst_method = 'mysqldump'; |
| 34 |
|
| 35 |
# |
| 36 |
# Force mysqldump SST |
| 37 |
# |
| 38 |
|
| 39 |
#--connection node_2 |
| 40 |
#--source suite/galera/include/galera_stop_replication.inc |
| 41 |
|
| 42 |
--echo Shutting down server ... |
| 43 |
--source include/shutdown_mysqld.inc |
| 44 |
|
| 45 |
--connection node_1 |
| 46 |
--let $wait_condition = SELECT VARIABLE_VALUE = 2 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size' |
| 47 |
--source include/wait_condition.inc |
| 48 |
|
| 49 |
--echo Cleaning var directory ... |
| 50 |
--remove_file $MYSQLTEST_VARDIR/mysqld.2/data/grastate.dat |
| 51 |
--remove_files_wildcard $MYSQLTEST_VARDIR/mysqld.2/data/mtr |
| 52 |
--remove_files_wildcard $MYSQLTEST_VARDIR/mysqld.2/data/performance_schema |
| 53 |
--remove_files_wildcard $MYSQLTEST_VARDIR/mysqld.2/data/test |
| 54 |
--remove_files_wildcard $MYSQLTEST_VARDIR/mysqld.2/data/mysql |
| 55 |
--remove_files_wildcard $MYSQLTEST_VARDIR/mysqld.2/data |
| 56 |
|
| 57 |
CREATE TABLE t1 (f1 INTEGER NOT NULL PRIMARY KEY) ENGINE=InnoDB; |
| 58 |
INSERT INTO t1 VALUES (1); |
| 59 |
|
| 60 |
--connection node_2 |
| 61 |
--echo Starting server ... |
| 62 |
--let $start_mysqld_params = --wsrep_sst_auth=sst: --wsrep_sst_method=mysqldump --wsrep-sst-receive-address=[::1].1:$NODE_MYPORT_2 |
| 63 |
let $restart_noprint=2; |
| 64 |
--source include/start_mysqld.inc |
| 65 |
|
| 66 |
#--source suite/galera/include/galera_start_replication.inc |
| 67 |
|
| 68 |
--let $wait_condition = SELECT VARIABLE_VALUE = 3 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size' |
| 69 |
--source include/wait_condition.inc |
| 70 |
|
| 71 |
--let $wait_condition = SELECT VARIABLE_VALUE = 'ON' FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_ready'; |
| 72 |
--source include/wait_condition.inc |
| 73 |
|
| 74 |
SELECT COUNT(*) AS EXPECT_1 FROM t1; |
| 75 |
|
| 76 |
DROP TABLE t1; |
| 77 |
|
| 78 |
# Confirm that initial handshake happened over ipv6 |
| 79 |
|
| 80 |
SELECT VARIABLE_VALUE LIKE '%[::1]%' FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_incoming_addresses'; |
| 81 |
|
| 82 |
# restart node so we don't fail on WSREP_START_POSITION internal check |
| 83 |
--source include/restart_mysqld.inc |
| 84 |
--source include/wait_until_connected_again.inc |
| 85 |
|
| 86 |
--source ../galera/include/auto_increment_offset_restore.inc |
| 87 |
--source suite/galera/include/galera_sst_restore.inc |
| 88 |
|
| 89 |
--connection node_2 |
| 90 |
CALL mtr.add_suppression("Unsupported protocol downgrade: incremental data collection disabled\\. Expect abort"); |
| 91 |
|
| 92 |
# Restore original auto_increment_offset values. |
| 93 |
--source ../galera/include/auto_increment_offset_restore.inc |