Skip to content

Commit b01a9fd

Browse files
committed
MDEV-25719: stunnel uses "verifyChain" without subject checks
Another batch of changes that should make the SST process more reliable in all scenarios: 1) Added hostname or CN verification when stunnel is used with certificate chain verification (verifyChain = yes); 2) Added check for the absence of the stunnel utility for mtr tests; 3) Deletion of working files before and after SST is done more accurately; 4) rsync on joiner can be run even if the path to its configuration file contains spaces; 5) More accurate directory creation (for data files and for logs); 6) IST with mysqldump no longer turns off statement logging; 7) Reset password for mysqldump when password is empty but username is specified; 8) More reliable quoting when generating statements in wsrep_sst_mysqldump; 9) Added explicit generation of 2048-bit Diffie-Hellman parameters for sockat < 1.7.3, by analogy with xtrabackup; 10) Compression parameters for qpress are read from all suitable server groups in configuration file, as well as from the [sst] and [xtrabackup] groups; 11) Added a test that checks compression using qpress; 12) Checking for optional utilities is modified to work even if they implemented as built-in shell commands (unlikely on real systems, but more reliable).
1 parent ca3f497 commit b01a9fd

19 files changed

+332
-132
lines changed

mysql-test/suite.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ sub skip_combinations {
5555
unless ::have_mariabackup();
5656

5757
$skip{'include/have_mariabackup.inc'} = 'Need socket statistics utility'
58-
unless IS_WINDOWS || ::which("ss");
58+
unless IS_WINDOWS || ! ::have_wsrep() || ::which("lsof") || ::which("sockstat") || ::which("ss");
5959

6060
$skip{'include/have_mariabackup.inc'} = 'Need socat or nc'
6161
unless IS_WINDOWS || $ENV{MTR_GALERA_TFMT};

mysql-test/suite/galera/disabled.def

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ galera_parallel_simple : MDEV-20318 galera.galera_parallel_simple fails
2121
galera_partition : MDEV-21806: galera.galera_partition MTR failed: failed to recover from DONOR state
2222
galera_shutdown_nonprim : MDEV-21493 galera.galera_shutdown_nonprim
2323
galera_var_node_address : MDEV-20485 Galera test failure
24-
galera_wan : MDEV-17259 Test failure on galera.galera_wan
24+
#galera_wan : MDEV-17259 Test failure on galera.galera_wan
2525
partition : MDEV-19958 Galera test failure on galera.partition
2626
query_cache: MDEV-15805 Test failure on galera.query_cache
27-
sql_log_bin : MDEV-21491 galera.sql_log_bin
27+
#sql_log_bin : MDEV-21491 galera.sql_log_bin
2828
versioning_trx_id: MDEV-18590: galera.versioning_trx_id: Test failure: mysqltest: Result content mismatch
2929
galera_wsrep_provider_unset_set: wsrep_provider is read-only for security reasons
3030
pxc-421: wsrep_provider is read-only for security reasons
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#
2+
# suite.pm will make sure that all tests including this file
3+
# will be skipped as needed
4+
#
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#
2+
# suite.pm will make sure that all tests including this file
3+
# will be skipped as needed
4+
#
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
SELECT 1;
2+
1
3+
1
4+
include/assert_grep.inc [Compressed qpress files found]

mysql-test/suite/galera/suite.pm

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,13 @@ push @::global_suppressions,
6969
qr|WSREP: Trying to continue unpaused monitor|,
7070
);
7171

72+
sub skip_combinations {
73+
my %skip = ();
74+
$skip{'include/have_stunnel.inc'} = "Need 'stunnel' utility"
75+
unless ::which("stunnel");
76+
$skip{'include/have_qpress.inc'} = "Need 'qpress' utility"
77+
unless ::which("qpress");
78+
%skip;
79+
}
80+
7281
bless { };

mysql-test/suite/galera/t/galera_ist_rsync.cnf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,3 @@ wsrep_sync_wait=1
1010
[mysqld.2]
1111
wsrep_provider_options='base_port=@mysqld.2.#galera_port;pc.ignore_sb=true'
1212
wsrep_sync_wait=1
13-

mysql-test/suite/galera/t/galera_log_bin.cnf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,3 @@ log-slave-updates
77
[mysqld.2]
88
log-bin
99
log-slave-updates
10-

mysql-test/suite/galera/t/galera_log_bin.inc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,3 @@ DROP TABLE t2;
3939
--echo #cleanup
4040
--connection node_1
4141
RESET MASTER;
42-

mysql-test/suite/galera/t/galera_log_bin_opt.cnf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ wsrep_provider_options='base_port=@mysqld.2.#galera_port;gcache.size=1;pc.ignore
1212

1313
[sst]
1414
transferfmt=@ENV.MTR_GALERA_TFMT
15-
streamfmt=xbstream
15+
streamfmt=mbstream

0 commit comments

Comments
 (0)