Skip to content

Commit 75b7cd6

Browse files
committed
MDEV-23974 Tests fail due to [Warning] InnoDB: Trying to delete tablespace
A few regression tests invoke heavy flushing of the buffer pool and may trigger warnings that tablespaces could not be deleted because of pending writes. Those warnings are to be expected during the execution of such tests. The warnings are also frequently seen with Valgrind or MemorySanitizer. For those, the global suppression in have_innodb.inc does the trick.
1 parent 44231dc commit 75b7cd6

13 files changed

+61
-1
lines changed

mysql-test/include/have_innodb.inc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,13 @@
22
# suite.pm will make sure that all tests including this file
33
# will be skipped unless innodb is enabled
44
#
5+
--disable_query_log
6+
if (`select count(*) from information_schema.system_variables where variable_name='have_sanitizer' and global_value like "MSAN%"`)
7+
{
8+
call mtr.add_suppression("InnoDB: Trying to delete tablespace.*pending operations");
9+
}
10+
if ($VALGRIND_TEST)
11+
{
12+
call mtr.add_suppression("InnoDB: Trying to delete tablespace.*pending operations");
13+
}
14+
--enable_query_log

mysql-test/main/flush_block_commit_notembedded.test

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
--echo # Save the initial number of concurrent sessions
1313
--source include/count_sessions.inc
1414

15+
--disable_query_log
16+
# This may be triggered on a slow system or one that lacks native AIO.
17+
call mtr.add_suppression("InnoDB: Trying to delete tablespace.*pending operations");
18+
--enable_query_log
1519

1620
connect (con1,localhost,root,,);
1721
connect (con2,localhost,root,,);

mysql-test/suite/encryption/t/innochecksum.test

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ if (!$INNOCHECKSUM) {
1515
--die Need innochecksum binary
1616
}
1717

18+
--disable_query_log
19+
# This may be triggered on a slow system or one that lacks native AIO.
20+
call mtr.add_suppression("InnoDB: Trying to delete tablespace.*pending operations");
21+
--enable_query_log
22+
1823
let $checksum_algorithm = `SELECT @@innodb_checksum_algorithm`;
1924
SET GLOBAL innodb_file_per_table = ON;
2025
# zlib

mysql-test/suite/innodb/include/innodb-page-compression.inc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# This test is slow on buildbot.
22
--source include/big_test.inc
3+
--disable_query_log
4+
# This may be triggered on a slow system or one that lacks native AIO.
5+
call mtr.add_suppression("InnoDB: Trying to delete tablespace.*pending operations");
6+
--enable_query_log
37
create table innodb_normal (c1 int not null auto_increment primary key, b char(200)) engine=innodb;
48
create table innodb_page_compressed1 (c1 int not null auto_increment primary key, b char(200)) engine=innodb page_compressed=1 page_compression_level=1;
59
create table innodb_page_compressed2 (c1 int not null auto_increment primary key, b char(200)) engine=innodb page_compressed=1 page_compression_level=2;

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
-- source include/have_innodb_bzip2.inc
33
-- source include/not_embedded.inc
44

5+
--disable_query_log
6+
# This may be triggered on a slow system or one that lacks native AIO.
7+
call mtr.add_suppression("InnoDB: Trying to delete tablespace.*pending operations");
8+
--enable_query_log
9+
510
# bzip2
611
set global innodb_compression_algorithm = 5;
712

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
# The test can take very long time with valgrind
55
--source include/not_valgrind.inc
66

7+
--disable_query_log
8+
# This may be triggered on a slow system or one that lacks native AIO.
9+
call mtr.add_suppression("InnoDB: Trying to delete tablespace.*pending operations");
10+
--enable_query_log
11+
712
# lz4
813
set global innodb_compression_algorithm = 2;
914

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
-- source include/have_innodb_lzma.inc
33
-- source include/not_embedded.inc
44

5+
--disable_query_log
6+
# This may be triggered on a slow system or one that lacks native AIO.
7+
call mtr.add_suppression("InnoDB: Trying to delete tablespace.*pending operations");
8+
--enable_query_log
9+
510
# lzma
611
set global innodb_compression_algorithm = 4;
712

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
-- source include/have_innodb_lzo.inc
33
-- source include/not_embedded.inc
44

5+
--disable_query_log
6+
# This may be triggered on a slow system or one that lacks native AIO.
7+
call mtr.add_suppression("InnoDB: Trying to delete tablespace.*pending operations");
8+
--enable_query_log
9+
510
# lzo
611
set global innodb_compression_algorithm = 3;
712

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
--source include/not_embedded.inc
33

44
let $innodb_compression_algorithm_orig=`SELECT @@innodb_compression_algorithm`;
5+
--disable_query_log
6+
# This may be triggered on a slow system or one that lacks native AIO.
7+
call mtr.add_suppression("InnoDB: Trying to delete tablespace.*pending operations");
8+
--enable_query_log
59

610
# zlib
711
set global innodb_compression_algorithm = 1;

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
# This test is slow on buildbot.
44
--source include/big_test.inc
55

6+
--disable_query_log
7+
# This may be triggered on a slow system or one that lacks native AIO.
8+
call mtr.add_suppression("InnoDB: Trying to delete tablespace.*pending operations");
9+
--enable_query_log
10+
611
# zlib
712
set global innodb_compression_algorithm = 1;
813

0 commit comments

Comments
 (0)