mariadb/mysql-test/suite/wsrep/t
Daniel Black 13e77930e6 MDEV-28263: mariadb-tzinfo-to-sql improve wsrep and binlog cases
The --skip-write-binlog message was confusing that it only had
an effect if the galera was enabled. There are uses beyond galera
so we apply SET SESSION SQL_LOG_BIN=0 as implied by the option
without being conditional on the wsrep status.

We also with --skip-write-binlog actually check the session @@WSREP_ON
variable rather than the global server variable.

Since 10.6, the wsrep_mode could replicate Aria and MyISAM, in which
case no change to innodb and back is needed.

By removing the conditions, we can use LOCK TABLES in a general case
improving the load speed of Aria (MDEV-23326), regardless of the
skip-write-binlog flag. The only case where we don't use LOCK TABLES is
when we are replicating via Innodb, because wsrep_on=1 and wsrep_mode
doesn't contain REPLICATE_ARIA{,MYISAM}. This uses an Innodb transaction
instead. When replicating via InnoDB we change the table engine type
back to what it was originally.

By removing the \d and other syntax that requires parsing by
the mariadb client, we can use the generated SQL more generally, like
in the embedded server.

We also save and restore the SQL_LOG_BIN and WSREP_ON session server
variables so this can be included in the same session as other data
without taking into changes in state.

Remove wsrep.mysql_tzinfo_to_sql_symlink{,_skip} tests as they offered
no additional coverage beyond main.mysql_tzinfo_to_sql_symlink (no
server testing was done).

Add galera.mariadb_tzinfo_to_sql to actually test the replication
of tzinfo data through galera.

The conditional executable comment around /*M!100602 ...
START TRANSACTION .. LOCK TABLES.. */ is so that we can provide tzinfo
files (MDEV-27113, MDBF-389) and in the case that a user uses it on a
pre-10.6 server version it will still work. Both START TRANSACTION and
LOCK TABLES are not supported in prepared statements in MariaDB versions
earlier than 10.6.2.

Reviewed by Brandon Nesterenko
2022-04-21 14:59:29 +10:00
..
alter_table_innodb.cnf MDEV-21335 : Galera test failure on suite wsrep 2019-12-18 10:02:57 +02:00
alter_table_innodb.test
binlog_format.cnf Galera4 2019-01-23 15:30:00 +04:00
binlog_format.opt Merge 10.3 into 10.4 2020-01-20 15:49:48 +02:00
binlog_format.test Galera4 2019-01-23 15:30:00 +04:00
foreign_key.opt
foreign_key.test
MDEV-20625.cnf MDEV-20625: MariaDB asserting when enabling wsrep=on 2020-02-04 08:56:03 +02:00
MDEV-20625.test MDEV-20625 : MariaDB asserting when enabling wsrep_on 2020-02-04 11:14:21 +02:00
MDEV-22443.cnf MDEV-22443 wsrep::runtime_error on START TRANSACTION 2020-08-19 13:12:00 +03:00
MDEV-22443.test MDEV-22443 wsrep::runtime_error on START TRANSACTION 2020-08-19 13:12:00 +03:00
MDEV-23081.cnf MDEV-23081 Stray XA transactions at startup, with wsrep_on=OFF 2020-10-21 16:29:07 +03:00
MDEV-23081.combinations MDEV-23081 Stray XA transactions at startup, with wsrep_on=OFF 2020-10-21 16:29:07 +03:00
MDEV-23081.test MDEV-23081 Stray XA transactions at startup, with wsrep_on=OFF 2020-10-21 16:29:07 +03:00
MDEV-23092.cnf MDEV-23092 SIGABRT when setting invalid wsrep_provider 2020-08-19 13:12:00 +03:00
MDEV-23092.test MDEV-23092 SIGABRT when setting invalid wsrep_provider 2020-08-19 13:12:00 +03:00
MDEV-23466.cnf MDEV-23466 SIGABRT on SELECT WSREP_LAST_SEEN_GTID 2020-08-19 13:12:00 +03:00
MDEV-23466.test MDEV-23466 SIGABRT on SELECT WSREP_LAST_SEEN_GTID 2020-08-19 13:12:00 +03:00
mdev_6832.cnf Galera4 2019-01-23 15:30:00 +04:00
mdev_6832.test Fix test case wsrep.mdev_6832 we need to wait until wsrep_ready 2019-10-08 15:04:39 +03:00
mdev_7798.cnf Galera4 2019-01-23 15:30:00 +04:00
mdev_7798.test Galera4 2019-01-23 15:30:00 +04:00
mdev_10186.cnf MDEV-21335 : Galera test failure on suite wsrep 2019-12-18 10:02:57 +02:00
mdev_10186.test MDEV-19736: Galera test failure on 2019-06-12 08:24:30 +03:00
mdev_22681.cnf MDEV-22681 EXECUTE IMMEDIATE crashes server if wsrep is on. 2020-10-28 09:51:35 +02:00
mdev_22681.test MDEV-22681 EXECUTE IMMEDIATE crashes server if wsrep is on. 2020-10-28 09:51:35 +02:00
plugin.opt MDEV-21335 : Galera test failure on suite wsrep 2019-12-18 08:22:07 +02:00
plugin.test MDEV-21335 : Galera test failure on suite wsrep 2019-12-18 08:22:07 +02:00
pool_of_threads.opt MDEV-21335 : Galera test failure on suite wsrep 2019-12-18 10:02:57 +02:00
pool_of_threads.test
trans.opt MDEV-21335 : Galera test failure on suite wsrep 2019-12-18 08:22:07 +02:00
trans.test MDEV-22021: Galera database could get inconsistent with rollback to savepoint 2020-03-31 09:59:37 +03:00
variables.cnf MDEV-17585 : wsrep.variables failed in buildbot with deadlock on CREATE USER 2020-10-10 08:50:50 +03:00
variables.test Update result files for Galera library 26.4.9 2021-07-27 10:34:45 +03:00
variables_debug.cnf Merge 10.3 into 10.4 2020-10-22 13:27:18 +03:00
variables_debug.test Update result files for Galera library 26.4.9 2021-07-27 10:34:45 +03:00
wsrep-recover-step.inc Backported wsrep-recover test from 10.4. 2019-01-25 16:03:14 +02:00
wsrep-recover-v25.cnf Backported wsrep-recover test from 10.4. 2019-01-25 16:03:14 +02:00
wsrep-recover-v25.combinations Backported wsrep-recover test from 10.4. 2019-01-25 16:03:14 +02:00
wsrep-recover-v25.test Adjust wsrep, galera, galera_3nodes, galera_sr and galera_3nodes_sr tests 2019-04-02 15:45:31 +03:00
wsrep-recover.cnf Galera4 2019-01-23 15:30:00 +04:00
wsrep-recover.combinations Galera4 2019-01-23 15:30:00 +04:00
wsrep-recover.test Adjust wsrep, galera, galera_3nodes, galera_sr and galera_3nodes_sr tests 2019-04-02 15:45:31 +03:00
wsrep_on_basic.opt More fixes to variable wsrep_on 2021-04-20 08:24:14 +03:00
wsrep_on_basic.test More fixes to variable wsrep_on 2021-04-20 08:24:14 +03:00
wsrep_rpl.cnf
wsrep_rpl.test
wsrep_variables_no_provider.cnf MDEV-24596 : Assertion `state_ == s_exec || state_ == s_quitting' failed in wsrep::client_state::disable_streaming 2021-01-21 11:41:29 +02:00
wsrep_variables_no_provider.test MDEV-24596 : Assertion `state_ == s_exec || state_ == s_quitting' failed in wsrep::client_state::disable_streaming 2021-01-21 11:41:29 +02:00
wsrep_variables_wsrep_off.cnf MDEV-24596 : Assertion `state_ == s_exec || state_ == s_quitting' failed in wsrep::client_state::disable_streaming 2021-01-21 11:41:29 +02:00
wsrep_variables_wsrep_off.test MDEV-24596 : Assertion `state_ == s_exec || state_ == s_quitting' failed in wsrep::client_state::disable_streaming 2021-01-21 11:41:29 +02:00