commit a9990c782e620243af4b381b0f32f609c04332cc Author: Laurynas Biveinis Date: Wed Aug 2 13:45:27 2017 +0300 Fix bug 87282 / LP TODO (WL#9499 can cause extra warnings on every crashing testcase) Each crashing testcase with a low probability may fail its warning check with an extra warning about the tablespace map file being zero length. This could be caused by the InnoDB background thread making checkpoints in the background. Each checkpoint writes out a tablespace map file after WL#9499, and before writing out, a file is truncated to zero. If a crash in another thread happens at this point, the crash recovery will produce this extra warning. Fix by suppressing the warning. To avoid suppressing it globally, add the suppression to include/not_crashrep.inc, which should be included by the crashing testcases. Include this file in some of the crashing testcases that do not include it already. diff --git a/mysql-test/include/not_crashrep.inc b/mysql-test/include/not_crashrep.inc index e126f339a5f..171de58aff7 100644 --- a/mysql-test/include/not_crashrep.inc +++ b/mysql-test/include/not_crashrep.inc @@ -22,3 +22,7 @@ EOF if ($crashrep) { --skip CrashReporter would popup a window } + +--disable_query_log +call mtr.add_suppression(".*tablespaces\\.open\\.* size is .* bytes. Must be at least"); +--enable_query_log diff --git a/mysql-test/suite/innodb_fts/t/plugin.test b/mysql-test/suite/innodb_fts/t/plugin.test index eb1bfcbcae1..515cd4cdf58 100644 --- a/mysql-test/suite/innodb_fts/t/plugin.test +++ b/mysql-test/suite/innodb_fts/t/plugin.test @@ -1,4 +1,5 @@ --source include/have_simple_parser.inc +--source include/not_crashrep.inc # Install fts parser plugin --replace_regex /\.dll/.so/ diff --git a/mysql-test/suite/rpl/t/rpl_row_crash_safe.test b/mysql-test/suite/rpl/t/rpl_row_crash_safe.test index 5d543dcdd8c..6430e0bc0a0 100644 --- a/mysql-test/suite/rpl/t/rpl_row_crash_safe.test +++ b/mysql-test/suite/rpl/t/rpl_row_crash_safe.test @@ -1,6 +1,7 @@ --source include/not_group_replication_plugin.inc # This test takes long time, so only run it with the --big-test mtr-flag. --source include/big_test.inc +--source include/not_crashrep.inc --source include/not_valgrind.inc --source include/have_debug.inc --source include/have_binlog_format_row.inc diff --git a/mysql-test/suite/rpl/t/rpl_stm_mixed_crash_safe.test b/mysql-test/suite/rpl/t/rpl_stm_mixed_crash_safe.test index 1856a458722..4515a28dc31 100644 --- a/mysql-test/suite/rpl/t/rpl_stm_mixed_crash_safe.test +++ b/mysql-test/suite/rpl/t/rpl_stm_mixed_crash_safe.test @@ -1,4 +1,5 @@ --source include/big_test.inc +--source include/not_crashrep.inc --source include/not_valgrind.inc --source include/have_debug.inc --source include/have_binlog_format_mixed_or_statement.inc diff --git a/rapid/plugin/group_replication/tests/mtr/t/gr_restart.test b/rapid/plugin/group_replication/tests/mtr/t/gr_restart.test index 5d762e66646..453a60cf8ab 100644 --- a/rapid/plugin/group_replication/tests/mtr/t/gr_restart.test +++ b/rapid/plugin/group_replication/tests/mtr/t/gr_restart.test @@ -20,6 +20,7 @@ ################################################################################ # This test does crashes servers, thence we skip it on valgrind. --source include/not_valgrind.inc +--source include/not_crashrep.inc --source include/have_debug.inc --source include/force_restart.inc --let $group_replication_group_name= 8a94f357-aab4-11df-86ab-c80aa9429576