mirror of
https://github.com/MariaDB/server.git
synced 2025-05-25 13:42:52 +03:00
This is a way do disable DBUG_ENTER()/DBUG_EXIT() stuff which is needed to dbug trace. Those who doesn't need it may avoid tests slowdown with -DWITH_DBUG_TRACE=OFF dbug/tests.c: add define which is neede always in this test innodb.log_file_name_debug.test: do not depend on DBUG trace stuff in test Benchmark results: each test eats less CPU and you can have more parallel jobs in MTR. patched: ./mtr -mem -par=8 -suite=innodb 185.34s user 86.85s system 133% cpu 3:23.27 total ./mtr -mem -par=8 -suite=main 80.96s user 36.01s system 182% cpu 1:04.07 total main.select [ pass ] 1660 main.select [ pass ] 1513 main.select [ pass ] 1543 main.select [ pass ] 1660 main.select [ pass ] 1521 main.select [ pass ] 1511 main.select [ pass ] 1508 main.select [ pass ] 1520 main.select [ pass ] 1514 main.select [ pass ] 1522 vanilla: ./mtr -mem -par=8 -suite=innodb 203.61s user 92.16s system 140% cpu 3:30.16 total ./mtr -mem -par=8 -suite=main 94.11s user 35.51s system 206% cpu 1:02.69 total main.select [ pass ] 2032 main.select [ pass ] 2017 main.select [ pass ] 2040 main.select [ pass ] 2183 main.select [ pass ] 2253 main.select [ pass ] 2075 main.select [ pass ] 2109 main.select [ pass ] 2080 main.select [ pass ] 2098 main.select [ pass ] 2114
51 lines
1.8 KiB
Plaintext
51 lines
1.8 KiB
Plaintext
--source include/have_innodb.inc
|
|
# Embedded server does not support restarting
|
|
--source include/not_embedded.inc
|
|
--source include/have_debug.inc
|
|
|
|
--echo #
|
|
--echo # Bug#19685095 DO NOT CARE ABOUT UNRESOLVED MLOG_FILE_NAME
|
|
--echo # IF THERE ARE NO OPERATIONS TO APPLY
|
|
--echo #
|
|
|
|
SET GLOBAL DEBUG_DBUG='+d,fil_names_write_bogus';
|
|
--disable_query_log
|
|
call mtr.add_suppression("InnoDB: Plugin initialization aborted");
|
|
call mtr.add_suppression("Plugin 'InnoDB' init function returned error");
|
|
call mtr.add_suppression("Plugin 'InnoDB' registration as a STORAGE ENGINE failed");
|
|
FLUSH TABLES;
|
|
--enable_query_log
|
|
|
|
--let $n_logs=`SELECT if(@@innodb_log_files_in_group = 1, 2, 1)`
|
|
--let $resize= --innodb-log-files-in-group=$n_logs --innodb-log-file-size=4M
|
|
|
|
--source include/no_checkpoint_start.inc
|
|
|
|
CREATE TABLE t1(a INT PRIMARY KEY) ENGINE=InnoDB;
|
|
|
|
--let CLEANUP_IF_CHECKPOINT=DROP TABLE t1;
|
|
--source include/no_checkpoint_end.inc
|
|
|
|
--let $restart_parameters= --debug=d,innodb_log_abort_1 $resize
|
|
--source include/start_mysqld.inc
|
|
--error ER_UNKNOWN_STORAGE_ENGINE
|
|
SELECT * FROM t1;
|
|
|
|
--let SEARCH_FILE = $MYSQLTEST_VARDIR/log/mysqld.1.err
|
|
--let SEARCH_PATTERN = InnoDB: Tablespace 4294967280 was not found at .*, but there were no modifications either
|
|
--source include/search_pattern_in_file.inc
|
|
|
|
--let $restart_parameters= --debug=d,innodb_log_abort_3,ib_log $resize
|
|
--source include/restart_mysqld.inc
|
|
--error ER_UNKNOWN_STORAGE_ENGINE
|
|
SELECT * FROM t1;
|
|
--let SEARCH_PATTERN= ib_log: MLOG_CHECKPOINT.* written
|
|
--source include/search_pattern_in_file.inc
|
|
|
|
--let $restart_parameters=
|
|
--source include/restart_mysqld.inc
|
|
# Initiate shutdown in order to issue a redo log checkpoint and to discard
|
|
# the redo log record that was emitted due to '+d,fil_names_write_bogus'.
|
|
--source include/restart_mysqld.inc
|
|
DROP TABLE t1;
|