mirror of
https://github.com/MariaDB/server.git
synced 2025-11-27 05:41:41 +03:00
Test would occasionally fail as follows: ``` mysqltest: At line 20: query 'SELECT COUNT(*) = 0 FROM t1' failed: 1317: Query execution was interrupted ``` This was due to a `CREATE TABLE` applied concurrently that would occasionally cause the `SELECT` to be BF aborted, due to MDL conflict. The `SELECT` is executed while `wsrep_on=OFF`. The change makes sure it is executed only after wsrep is enabled again.
31 lines
811 B
Plaintext
31 lines
811 B
Plaintext
#
|
|
# Test that GRA_* files are generated on applier failure and are readable.
|
|
#
|
|
|
|
--source include/galera_cluster.inc
|
|
--source include/have_innodb.inc
|
|
|
|
--connection node_2
|
|
--exec rm -rf $MYSQLTEST_VARDIR/mysqld.2/data/GRA_*.log
|
|
|
|
# Create applier failure
|
|
|
|
SET SESSION wsrep_on=OFF;
|
|
CREATE TABLE t1 (f1 INTEGER);
|
|
|
|
--connection node_1
|
|
CREATE TABLE t1 (f1 INTEGER);
|
|
|
|
--connection node_2
|
|
SET SESSION wsrep_on=ON;
|
|
SELECT COUNT(*) = 0 FROM t1;
|
|
|
|
# Make sure the GRA file produced is readable and contains the failure
|
|
|
|
--replace_regex /SET TIMESTAMP=[0-9]+/SET TIMESTAMP=<TIMESTAMP>/ /pseudo_thread_id=[0-9]+/pseudo_thread_id=<PSEUDO_THREAD_ID>/
|
|
--exec $MYSQL_BINLOG --short-form $MYSQLTEST_VARDIR/mysqld.2/data/GRA_*.log
|
|
|
|
CALL mtr.add_suppression("Slave SQL: Error 'Table 't1' already exists' on query");
|
|
|
|
DROP TABLE t1;
|