Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Duplicate
-
None
Description
When innodb_file_per_table=ON, each table has its only ibd file, user thread has to unlink refered ibd file when drop table is executed. as a result, it cost a lot of time when the ibd file is large and stall the whole system.
For detail information, please refer to: https://github.com/MariaDB/server/pull/1021
Attachments
Issue Links
- relates to
-
MDEV-32786 Support NBO for DROP TABLE in Galera
-
- Open
-
-
MDEV-8069 DROP or rebuild of a large table may lock up InnoDB
-
- Closed
-
-
MDEV-9459 Truncate table causes innodb stalls
-
- Closed
-
-
MDEV-16796 TRUNCATE TABLE slowdown with innodb_file_per_table=ON
-
- Closed
-
As far as I can tell, this basically is a work-around for an operating system deficiency that blocks any concurrent usage of the file system while a large file is being deleted. To my knowledge, it is most needed on Linux, and not at all needed on Microsoft Windows.
MDEV-8069andMDEV-22456will remove some other bottlenecks related to InnoDB DDL operations that affect all environments.Technically, if we implement a background task that piecewise shrinks a large file in order to work around the file system starvation bug, it would be preferable to do that on 10.5 or later, using the
MDEV-16264infrastructure.