Debian Codegraph @

mysql-test/suite/galera/t/GCF-939.test

raw
1 #
2 # GCF-939 Avoid creation of GRA log files when applier is successfull
3 #
4
5 --source include/galera_cluster.inc
6 --source include/have_innodb.inc
7
8 --exec rm -rf $MYSQLTEST_VARDIR/mysqld.2/data/GRA_*.log
9
10 --connection node_1
11 --error ER_BAD_TABLE_ERROR
12 DROP TABLE t1;
13
14 CREATE TABLE t1 (f1 INTEGER) ENGINE=InnoDB;
15 INSERT INTO t1 VALUES (1);
16
17 --connection node_2
18 SELECT * FROM t1;
19
20 --connection node_1
21
22 # Expect only one GRA_*.log file
23 # TODO replace_regex is somehow broken, it will filter out
24 # result totally if replacement string is already in result
25 # fixed this temporarily by calling list_files twice
26 # to get GRA_.log two times, this works for some reason
27 #
28 --replace_regex /GRA_.+\.log/GRA_.log/
29 --replace_regex /GRA_.+\.log/GRA_.log/
30 --list_files $MYSQLTEST_VARDIR/mysqld.2/data GRA_*.log
31
32 DROP TABLE t1;
33 CALL mtr.add_suppression("Ignoring error 'Unknown table 'test\\.t1'' on query");
34
35 --connection node_2
36 CALL mtr.add_suppression("Error 'Unknown table 'test\\.t1'' on query");