mariadb/mysql-test/suite/galera_3nodes/t
Julius Goryavsky 31201dcbaf MDEV-21770: galera_3nodes.galera_ipv6_mariabackup fails
This patch fixes several flaws in the SST scripts that cause
failures while running tests that use version 6 IP addresses
for cluster nodes.

First, if the netcat utility is used for streaming (but not socat),
then in accordance with its command line syntax, we need to remove
the square brackets around the IPv6 address. However, for socat,
the address must contain square brackets, as before.

Secondly, if an IPv6 address is used, then from the joiner side for
a number of systems (such as Debian) we need to explicitly specify
the "-6" option, otherwise a listening socket with an IPv6 address
may not be created.

This patch also contains code improvements in the wsrep_sst_common.
Changed the code that pars the connection address - fixed the
shortcomings that sometimes led to incorrect parsing of parameters
when using shells other than the latest versions of bash.

Also, this patch removes the duplicate code that is intended
for parsing the connection address and which was located in the
wsrep_sst_mariabackup file, since all the necessary actions have
already been done in wsrep_sst_common and there they are done in
such a way that any shell is supported, not just bash.

The fix does not require separate tests, since all the
necessary tests are already present in the galera_3nodes suite.
On the contrary, after this fix, tests using IPv6 addresses can
be removed from the disabled list (this will be done in a separate
commit related to MDEV-23659).
2020-10-15 13:49:22 +02:00
..
GAL-501.cnf
GAL-501.test
galera_certification_ccc.test
galera_certification_double_failure.test
galera_evs_suspect_timeout.test
galera_garbd.test
galera_gtid_2_cluster.cnf
galera_gtid_2_cluster.test
galera_ipv6_mariabackup.cnf
galera_ipv6_mariabackup.test
galera_ipv6_mariabackup_section.cnf
galera_ipv6_mariabackup_section.test
galera_ipv6_mysqldump.cnf
galera_ipv6_mysqldump.test
galera_ipv6_rsync.cnf
galera_ipv6_rsync.test
galera_ipv6_rsync_section.cnf
galera_ipv6_rsync_section.test
galera_ist_gcache_rollover.cnf
galera_ist_gcache_rollover.test
galera_join_with_cc_A.test
galera_join_with_cc_B.test
galera_join_with_cc_C.test
galera_load_data_ist.cnf
galera_load_data_ist.test
galera_parallel_apply_3nodes.test
galera_pc_bootstrap.cnf
galera_pc_bootstrap.test
galera_pc_weight.cnf
galera_pc_weight.test
galera_safe_to_bootstrap.cnf
galera_safe_to_bootstrap.test
galera_slave_options_do.cnf
galera_slave_options_do.test
galera_slave_options_ignore.cnf
galera_slave_options_ignore.test
galera_var_dirty_reads2.test