mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 02:51:44 +01:00
f381e019b6
Test case and configuration cleanup.
39 lines
1.3 KiB
Text
39 lines
1.3 KiB
Text
#
|
|
# Test GAL-501 Improved URI parsing for IPv6 addresses
|
|
# The .cnf file contains
|
|
# wsrep_node_address=[::1]
|
|
# ist.recv_addr=[::1]
|
|
|
|
--source include/galera_cluster.inc
|
|
--source include/check_ipv6.inc
|
|
--source include/force_restart.inc
|
|
|
|
# Confirm that initial handshake happened over ipv6
|
|
|
|
SELECT VARIABLE_VALUE LIKE '%[::1]%' FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_incoming_addresses';
|
|
SELECT VARIABLE_VALUE = 3 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size';
|
|
|
|
# Force IST
|
|
|
|
--connection node_2
|
|
SET GLOBAL wsrep_provider_options='gmcast.isolate=1';
|
|
|
|
--connection node_1
|
|
--let $wait_condition = SELECT VARIABLE_VALUE = 2 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size';
|
|
--source include/wait_condition.inc
|
|
|
|
CREATE TABLE t1 (f1 INTEGER NOT NULL PRIMARY KEY) ENGINE=InnoDB;
|
|
INSERT INTO t1 VALUES (1);
|
|
|
|
--connection node_2
|
|
SET GLOBAL wsrep_provider_options='gmcast.isolate=0';
|
|
|
|
--let $wait_condition = SELECT VARIABLE_VALUE = 3 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size';
|
|
--source include/wait_condition.inc
|
|
|
|
--let $wait_condition = SELECT VARIABLE_VALUE = 'ON' FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_ready';
|
|
--source include/wait_condition.inc
|
|
|
|
SELECT COUNT(*) AS EXPECT_1 FROM t1;
|
|
|
|
DROP TABLE t1;
|