Details

    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();
                      }
      

      Attachments

        Activity

          svoj Sergey Vojtovich created issue -
          jplindst Jan Lindström (Inactive) made changes -
          Field Original Value New Value
          Status Open [ 1 ] In Progress [ 3 ]

          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.

          jplindst Jan Lindström (Inactive) added a comment - 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.
          jplindst Jan Lindström (Inactive) made changes -
          Fix Version/s 10.2.3 [ 22115 ]
          Fix Version/s 10.2 [ 14601 ]
          Resolution Fixed [ 1 ]
          Status In Progress [ 3 ] Closed [ 6 ]
          serg Sergei Golubchik made changes -
          Workflow MariaDB v3 [ 78235 ] MariaDB v4 [ 151199 ]

          People

            jplindst Jan Lindström (Inactive)
            svoj Sergey Vojtovich
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.