[MDEV-22090] Change buffer is not freed after dropping or rebuilding table Created: 2020-03-31  Updated: 2023-04-26  Resolved: 2020-03-31

Status: Closed
Project: MariaDB Server
Component/s: Storage Engine - InnoDB
Affects Version/s: 10.5.0
Fix Version/s: 10.5.3

Type: Bug Priority: Major
Reporter: Marko Mäkelä Assignee: Marko Mäkelä
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Problem/Incident
is caused by MDEV-19514 Defer change buffer merge until pages... Closed
Relates
relates to MDEV-31132 Deadlock between a DDL operation and ... Closed

 Description   

When MDEV-19514 removed the change buffer merges in the background, it introduced a minor regression: After DDL operations that drop or rebuild a table, any entries in the change buffer could survive until a slow shutdown innodb_fast_shutdown=0 is executed.

We can do better: Before returning from fil_delete_tablespace(), invoke ibuf_delete_for_discarded_space(). In that way, the only way to have change buffer ‘leaks’ is to kill the server and never initiate a slow shutdown.


Generated at Thu Feb 08 09:12:06 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.