Description:
on a 5.7.19 just started up, I dropped a database containing some fairly large tables. Here is the partial spam from the error log :
2017-07-27T12:24:19.993357Z 3 [Warning] InnoDB: Trying to close/delete/truncate tablespace 'test/2017' but there are 1 pending operations on it.
2017-07-27T12:24:20.024557Z 3 [Warning] InnoDB: Trying to close/delete/truncate tablespace 'test/2017' but there are 1 pending operations on it.
2017-07-27T12:24:20.045157Z 3 [Warning] InnoDB: Trying to close/delete/truncate tablespace 'test/2017' but there are 1 pending operations on it.
2017-07-27T12:24:20.065159Z 3 [Warning] InnoDB: Trying to close/delete/truncate tablespace 'test/2017' but there are 1 pending operations on it.
2017-07-27T12:24:20.085160Z 3 [Warning] InnoDB: Trying to close/delete/truncate tablespace 'test/2017' but there are 1 pending operations on it.
2017-07-27T12:24:20.105161Z 3 [Warning] InnoDB: Trying to close/delete/truncate tablespace 'test/2017' but there are 1 pending operations on it.
2017-07-27T12:24:20.125162Z 3 [Warning] InnoDB: Trying to close/delete/truncate tablespace 'test/2017' but there are 1 pending operations on it.
2017-07-27T12:24:20.145163Z 3 [Warning] InnoDB: Trying to close/delete/truncate tablespace 'test/2017' but there are 1 pending operations on it.
2017-07-27T12:24:20.165164Z 3 [Warning] InnoDB: Trying to close/delete/truncate tablespace 'test/2017' but there are 1 pending operations on it.
2017-07-27T12:24:20.185166Z 3 [Warning] InnoDB: Trying to close/delete/truncate tablespace 'test/2017' but there are 1 pending operations on it.
2017-07-27T12:24:20.210766Z 3 [Warning] InnoDB: Trying to close/delete/truncate tablespace 'test/2017' but there are 1 pending operations on it.
2017-07-27T12:24:20.231366Z 3 [Warning] InnoDB: Trying to close/delete/truncate tablespace 'test/2017' but there are 1 pending operations on it.
2017-07-27T12:24:20.260967Z 3 [Warning] InnoDB: Trying to close/delete/truncate tablespace 'test/2017' but there are 1 pending operations on it.
2017-07-27T12:24:20.292167Z 3 [Warning] InnoDB: Trying to close/delete/truncate tablespace 'test/2017' but there are 1 pending operations on it.
2017-07-27T12:24:20.323367Z 3 [Warning] InnoDB: Trying to close/delete/truncate tablespace 'test/2017' but there are 1 pending operations on it.
2017-07-27T12:24:20.354567Z 3 [Warning] InnoDB: Trying to close/delete/truncate tablespace 'test/2017' but there are 1 pending operations on it.
2017-07-27T12:24:20.385767Z 3 [Warning] InnoDB: Trying to close/delete/truncate tablespace 'test/2017' but there are 1 pending operations on it.
2017-07-27T12:24:20.416968Z 3 [Warning] InnoDB: Trying to close/delete/truncate tablespace 'test/2017' but there are 1 pending operations on it.
2017-07-27T12:24:20.448168Z 3 [Warning] InnoDB: Trying to close/delete/truncate tablespace 'test/2017' but there are 1 pending operations on it.
2017-07-27T12:24:20.479368Z 3 [Warning] InnoDB: Trying to close/delete/truncate tablespace 'test/2017' but there are 1 pending operations on it.
2017-07-27T12:24:20.510568Z 3 [Warning] InnoDB: Trying to close/delete/truncate tablespace 'test/2017' but there are 1 pending operations on it.
2017-07-27T12:24:20.541768Z 3 [Warning] InnoDB: Trying to close/delete/truncate tablespace 'test/2017' but there are 1 pending operations on it.
2017-07-27T12:24:20.572968Z 3 [Warning] InnoDB: Trying to close/delete/truncate tablespace 'test/2017' but there are 1 pending operations on it.
2017-07-27T12:24:20.604168Z 3 [Warning] InnoDB: Trying to close/delete/truncate tablespace 'test/2017' but there are 1 pending operations on it.
2017-07-27T12:24:20.635368Z 3 [Warning] InnoDB: Trying to close/delete/truncate tablespace 'test/2017' but there are 1 pending operations on it.
2017-07-27T12:24:20.666568Z 3 [Warning] InnoDB: Trying to close/delete/truncate tablespace 'test/2017' but there are 1 pending operations on it.
2017-07-27T12:24:20.697768Z 3 [Warning] InnoDB: Trying to close/delete/truncate tablespace 'test/2017' but there are 1 pending operations on it.
2017-07-27T12:24:20.728968Z 3 [Warning] InnoDB: Trying to close/delete/truncate tablespace 'test/2017' but there are 1 pending operations on it.
2017-07-27T12:24:20.760168Z 3 [Warning] InnoDB: Trying to close/delete/truncate tablespace 'test/2017' but there are 1 pending operations on it.
2017-07-27T12:24:20.791368Z 3 [Warning] InnoDB: Trying to close/delete/truncate tablespace 'test/2017' but there are 1 pending operations on it.
2017-07-27T12:24:20.822568Z 3 [Warning] InnoDB: Trying to close/delete/truncate tablespace 'test/2017' but there are 1 pending operations on it.
2017-07-27T12:24:20.853768Z 3 [Warning] InnoDB: Trying to close/delete/truncate tablespace 'test/2017' but there are 1 pending operations on it.
2017-07-27T12:24:20.884968Z 3 [Warning] InnoDB: Trying to close/delete/truncate tablespace 'test/2017' but there are 1 pending operations on it.
2017-07-27T12:24:20.917168Z 3 [Warning] InnoDB: Trying to close/delete/truncate tablespace 'test/2017' but there are 1 pending operations on it.
2017-07-27T12:24:20.948369Z 3 [Warning] InnoDB: Trying to close/delete/truncate tablespace 'test/2017' but there are 1 pending operations on it.
2017-07-27T12:24:20.979569Z 3 [Warning] InnoDB: Trying to close/delete/truncate tablespace 'test/2017' but there are 1 pending operations on it.
2017-07-27T12:24:21.010769Z 3 [Warning] InnoDB: Trying to close/delete/truncate tablespace 'test/2017' but there are 1 pending operations on it.
2017-07-27T12:24:21.041969Z 3 [Warning] InnoDB: Trying to close/delete/truncate tablespace 'test/2017' but there are 1 pending operations on it.
2017-07-27T12:24:21.074169Z 3 [Warning] InnoDB: Trying to close/delete/truncate tablespace 'test/2017' but there are 1 pending operations on it.
2017-07-27T12:24:21.105369Z 3 [Warning] InnoDB: Trying to close/delete/truncate tablespace 'test/2017' but there are 1 pending operations on it.
How to repeat:
o) code inspection.
o) drop database with a few large tables on a slow hard disk.
Suggested fix:
Please, no need to spam 35 times per second!
Slow down, put a sleep/throttle in there....
This is just a request to throttle the outputs. If you want to fix the long semaphore waits, that can be a WL or new bug.
just a note. to drop a large table straight after startup, the buffer pool is still loading and thus reading from disk many gigabytes of .ibd files.
It is best to cancel that, and the symptoms go away:
set global innodb_buffer_pool_load_abort=1;
drop database if exists test;
Page generated in 0.053 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders. It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.