Debian Codegraph @

mysql-test/suite/innodb/t/innodb_dirty_pages_at_shutdown.test

raw
1 --source include/have_debug_sync.inc
2 # This test checks the behavior of InnoDB when dirty pages are found
3 # after closing the redo log systems and page cleaners
4
5 CREATE TABLE t1 (c1 INT);
6 INSERT INTO t1 VALUES (1);
7
8 call mtr.add_suppression("\\[InnoDB\\] \\[FATAL\\] Page still fixed or dirty at shutdown.");
9 call mtr.add_suppression("\\[InnoDB\\] Assertion failure.*ib::fatal triggered");
10 call mtr.add_suppression("Attempting backtrace");
11
12 SET GLOBAL DEBUG="+d,simulate_dirty_page_at_shutdown";
13
14 --echo # Shutdown the server
15 --source include/shutdown_mysqld.inc
16
17 --echo # Search the server error logs for the FATAL message
18 --let SEARCH_PATTERN = Page still fixed or dirty at shutdown
19 --let SEARCH_FILE = $MYSQLTEST_VARDIR/log/mysqld.1.err
20 --source include/search_pattern.inc
21
22 --echo # Start the server
23 --source include/start_mysqld.inc
24
25 DROP TABLE t1;