mariadb/mysql-test/suite
Julius Goryavsky 1ae7673aae MDEV-24962: Galera SST innobackupex-move ignores Environment settings
After switching to the new mariabackup interface (instead of
the outdated innobackupex interface, which is supported for
compatibility), we need to explicitly pass a path to the datadir
directory as a parameter, since in the new interface the value
of this option is not automatically set in such a way that it
always matches the SST/IST logic. This commit adds passing this
option as an explicit parameter to mariabackup. This commit also
removed unnecessary options that are not used and not supported
by mariabackup.

Also, numerous flaws in the common wsrep_sst_common script have
been fixed:

 1) There are many bash-specific constructs in the script that
    may not be supported by other interpreters, which can lead
    to the most unexpected errors during SST, because failures
    in the interpretation of bash-specific constructs lead to
    incorrect parsing of arguments;
 2) There is parse_cnf() function which is often called by other
    scripts for the "mysqld" or "--mysqld" group, but it does not
    take into account the default group suffix, which leads to
    reading values only from the default group, which then leads
    to errors due to reading the default values instead of the
    values for a specific group;
 3) Some options such as --user, --innodb-data-home-dir or --datadir
    are not removed from the --mysqld-args list, although they are
    processed inside scripts (and passing of these options funther
    may cause problems for mariabackup);
 4) If an argument that the script understands is present in
    the --mysqld-args list twice, then this causes SST to fail,
    instead of reading the most recent value;
 5) The "--host" parameter is technically still supported among
    the arguments of the SST scripts, but in reality scripts do not
    work with it as expected, especially if it has an IPv6 address;
 6) If the port number is absent in the --address parameter value,
    but the port number is explicitly passed through the --port
    argument, then the scripts for mariabackup and xtrabackup-v2
    fail;
 7) If a new address interface is used (with the --address parameter),
    then automatic default port substitution is not performed, although
    it is supported for the legacy --host/--port interface.
 8) If there are spaces in the parameter values after --mysqld_args,
    then their further transfer does not occur correctly, which
    causes mariabackup to fail during SST - the space splits
    the argument in such a way that it breaks the parsing of the
    following parameters;
 9) If most of the parameters that are names or paths to the files
    or directories contain spaces, then SST scripts fail in an
    unpredictable way due to incorrect variable substitutions;
10) If the --log-bin option is passed among the arguments of myqlds
    (--mysqld-args) without a parameter, and the --binlog option
    is not specified, then the script cannot substitute the default
    name for binlog and cannot construct binlog name using the
    --log-basename argument (which is against server specifications);
11) Tail slashes are not removed from the directory names, which,
    upon further substitution, leads to the appearance of a double
    slash in the file paths;
12) The explicit --binlog parameter (which is now always transmitted
    from the server side) and the "hidden" --log-bin parameter in the
    list of arguments after --mysqld-args are perceived as two different
    parameters in different parts of the scripts, and if they are do not
    match for some reason, this will lead to failures during SST;

Also, all new changes from the 10.6 branch have been migrated here,
including the latest pull requests for authentication (only the part
that concerns SST scripts).

It also fixes dozens of other bugs in all SST scripts.
2021-05-04 01:06:42 +02:00
..
archive
binlog MDEV-24526 binlog rotate via FLUSH LOGS may obsolate binlog file for recovery too eary 2021-04-21 15:39:32 +03:00
binlog_encryption fix binlog_xa_recover test 2021-02-22 19:43:08 +01:00
csv
encryption MDEV-25032: Window functions without column references get removed from ORDER BY 2021-03-04 15:37:47 +02:00
engines reenable tests from engines/funcs 2021-03-10 09:12:57 +01:00
federated MDEV-17573 Assertion in federatedx on multi-update 2020-12-09 20:15:29 +03:00
funcs_1 Bug#29363867: LOST CONNECTION TO MYSQL SERVER DURING QUERY 2021-04-28 11:31:18 +02:00
funcs_2 Merge 10.1 into 10.2 2020-07-01 12:03:55 +03:00
galera MDEV-24962: Galera SST innobackupex-move ignores Environment settings 2021-05-04 01:06:42 +02:00
galera_3nodes MDEV-24962: Galera SST innobackupex-move ignores Environment settings 2021-05-04 01:06:42 +02:00
gcol MDEV-24583 SELECT aborts after failed REPLACE into table with vcol 2021-04-27 11:51:17 +03:00
handler
heap MDEV-20604: Duplicate key value is silently truncated to 64 characters in print_keydup_error 2020-04-01 11:34:32 +02:00
innodb MDEV-25568 RENAME TABLE causes "Ignoring data file" messages 2021-04-30 09:37:50 +03:00
innodb_fts MDEV-25536 InnoDB: Failing assertion: sym_node->table != NULL in pars_retrieve_table_def 2021-04-30 20:05:12 +05:30
innodb_gis MDEV-13467: Feature request: Support for ST_Distance_Sphere() 2021-03-27 10:42:39 +01:00
innodb_zip MDEV-18428 Memory: If transactional=0 is specified in CREATE TABLE, it is not possible to ALTER TABLE 2021-01-11 21:54:47 +01:00
jp
json
large_tests
maria MDEV-18428 Memory: If transactional=0 is specified in CREATE TABLE, it is not possible to ALTER TABLE 2021-01-11 21:54:47 +01:00
mariabackup MDEV-24197: Add "innodb_force_recovery" for "mariabackup --prepare" 2021-04-01 13:34:40 +03:00
mtr/t
mtr2
multi_source MDEV-23511 shutdown_server 10 times out, causing server kill at shutdown 2020-08-21 14:48:53 +03:00
optimizer_unfixed_bugs MDEV-21360 global debug_dbug pre-test value restoration issues 2020-01-15 18:06:24 +01:00
parts Merge branch '10.1' into 10.2 2020-08-03 02:57:50 +03:00
percona MDEV-23511 shutdown_server 10 times out, causing server kill at shutdown 2020-08-21 14:48:53 +03:00
perfschema cleanup: remove slave background thread, use handle_manager thread instead 2021-01-24 11:35:55 +01:00
perfschema_stress
plugins MDEV-25457 CREATE / DROP PROCEDURE not logged with audit plugin. 2021-03-29 16:59:34 +04:00
roles MDEV-24289: show grants missing with grant option 2020-11-26 18:10:40 +01:00
rpl MDEV-16146: MariaDB slave stops with following errors. 2021-04-30 20:34:31 +05:30
storage_engine MDEV-23511 shutdown_server 10 times out, causing server kill at shutdown 2020-08-21 14:48:53 +03:00
stress MDEV-22339 - Assertion `str_length < len' failed 2020-06-04 23:52:10 +02:00
sys_vars revive innodb_debug_sync 2021-04-27 11:51:17 +03:00
unit
vcol MDEV-24583 SELECT aborts after failed REPLACE into table with vcol 2021-04-27 11:51:17 +03:00
wsrep Merge branch 'bb-10.2-release' into 10.2 2021-02-22 18:43:03 +01:00