Merge pull request #1136 from tempesta-tech/sysprg/MDEV-18379

MDEV-18379: Unification of check for IPv6
This commit is contained in:
Jan Lindström 2019-01-25 14:38:44 +02:00 committed by GitHub
commit f2518f3da9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 8 additions and 19 deletions

View File

@ -1,15 +0,0 @@
# Check if ipv6 is available.
#
--disable_query_log
--disable_result_log
connect (checkcon123456789,::1,root,,test);
if($mysql_errno)
{
skip No IPv6 support;
}
connection default;
disconnect checkcon123456789;
--enable_result_log
--enable_query_log
# end check

View File

@ -4,9 +4,12 @@ VARIABLE_VALUE LIKE '%[::1]%'
SELECT VARIABLE_VALUE = 3 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size'; SELECT VARIABLE_VALUE = 3 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size';
VARIABLE_VALUE = 3 VARIABLE_VALUE = 3
1 1
connection node_2;
SET GLOBAL wsrep_provider_options='gmcast.isolate=1'; SET GLOBAL wsrep_provider_options='gmcast.isolate=1';
connection node_1;
CREATE TABLE t1 (f1 INTEGER) ENGINE=InnoDB; CREATE TABLE t1 (f1 INTEGER) ENGINE=InnoDB;
INSERT INTO t1 VALUES (1); INSERT INTO t1 VALUES (1);
connection node_2;
SET GLOBAL wsrep_provider_options='gmcast.isolate=0'; SET GLOBAL wsrep_provider_options='gmcast.isolate=0';
SELECT COUNT(*) = 1 FROM t1; SELECT COUNT(*) = 1 FROM t1;
COUNT(*) = 1 COUNT(*) = 1

View File

@ -0,0 +1 @@
--bind-address=::

View File

@ -5,7 +5,7 @@
# ist.recv_addr=[::1] # ist.recv_addr=[::1]
--source include/galera_cluster.inc --source include/galera_cluster.inc
--source include/have_ipv6.inc --source include/check_ipv6.inc
# Confirm that initial handshake happened over ipv6 # Confirm that initial handshake happened over ipv6

View File

@ -1,5 +1,5 @@
--source include/galera_cluster.inc --source include/galera_cluster.inc
--source include/have_ipv6.inc --source include/check_ipv6.inc
--source include/have_mariabackup.inc --source include/have_mariabackup.inc
# Confirm that initial handshake happened over ipv6 # Confirm that initial handshake happened over ipv6

View File

@ -1,5 +1,5 @@
--source include/galera_cluster.inc --source include/galera_cluster.inc
--source include/have_ipv6.inc --source include/check_ipv6.inc
call mtr.add_suppression("WSREP: wsrep_sst_method is set to 'mysqldump' yet mysqld bind_address is set to'"); call mtr.add_suppression("WSREP: wsrep_sst_method is set to 'mysqldump' yet mysqld bind_address is set to'");
call mtr.add_suppression("Failed to load slave replication state from table mysql.gtid_slave_pos"); call mtr.add_suppression("Failed to load slave replication state from table mysql.gtid_slave_pos");

View File

@ -1,5 +1,5 @@
--source include/galera_cluster.inc --source include/galera_cluster.inc
--source include/have_ipv6.inc --source include/check_ipv6.inc
# Confirm that initial handshake happened over ipv6 # Confirm that initial handshake happened over ipv6