[MDEV-11250] mtflush threads stall on shutdown Created: 2016-11-08  Updated: 2016-11-10  Resolved: 2016-11-10

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

Type: Bug Priority: Major
Reporter: Sergey Vojtovich Assignee: Jan Lindström (Inactive)
Resolution: Fixed Votes: 0
Labels: None


 Description   

Easily reproducible with mtr...

mtflush.opt:

--innodb_use_mtflush=1 --innodb_mtflush_threads=32

mtflush.test:

--source include/have_innodb.inc
 
--source include/mysqladmin_shutdown.inc

Observe long shutdown and then:

...
2016-11-08 12:35:07 139764986319616 [Warning] InnoDB: 32 threads created by InnoDB had not exited at shutdown!
...

Most probably the following lines were lost in merge at innobase_shutdown_for_mysql():

                if (srv_use_mtflush) {
                        /* g. Exit the multi threaded flush threads */
 
                        buf_mtflu_io_thread_exit();
                }



 Comments   
Comment by Jan Lindström (Inactive) [ 2016-11-10 ]

commit 8c038239748f6a9666e07e601a46967d3a0381d0
Author: Jan Lindström <jan.lindstrom@mariadb.com>
Date: Thu Nov 10 09:42:49 2016 +0200

MDEV-11250: mtflush threads stall on shutdown

Code calling mtflush threads to exit was too late.

Generated at Thu Feb 08 07:48:29 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.