[MDEV-26511] Innodb - do not allocate purge THDs during shutdown Created: 2021-08-30  Updated: 2021-08-31  Resolved: 2021-08-30

Status: Closed
Project: MariaDB Server
Component/s: Storage Engine - InnoDB
Affects Version/s: 10.5, 10.6, 10.7
Fix Version/s: 10.5.13, 10.6.5

Type: Bug Priority: Major
Reporter: Vladislav Vaintroub Assignee: Vladislav Vaintroub
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Problem/Incident
is caused by MDEV-21751 innodb_fast_shutdown=0 can be unneces... Closed

 Description   

MDEV-21751 changed the logic of so that background THD allocated when needed.
It also increased maxed out purge task during shutdown. It turns out that allocating THD when needed is not always a good idea, as THD constructor during shutdown may crash, e.g when constructor is accessing global variables, which are destroyed.

The logic needs to be changed such that THDs are only preallocated when it is safe to do never after pre-shutdown.


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