Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-20598

Server slow to shutdown if system time goes backwards

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Blocker
    • Resolution: Duplicate
    • 10.3.15, 10.3.17, 10.3.18
    • N/A
    • Server
    • None

    Description

      If the system time goes backwards mysqld takes a very long time to shutdown. This causes a mysqld restart to fail.

      root@myhost:~# /etc/init.d/mysqld restart
      Shutting down MariaDB.. SUCCESS!
      Starting MariaDB.190916 01:06:28 mysqld_safe Logging to '/var/log/mysqld.err'.
      190916 01:06:28 mysqld_safe Starting mysqld daemon with databases from /etc/config/mysql_data
       SUCCESS!
      root@myhost:~# date $(date +%m%d%H%M%Y.%S -d '50 min ago')
      Mon Sep 16 00:17:59 UTC 2019
      root@myhost:~# /etc/init.d/mysqld restart
      Shutting down MariaDB.................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... ERROR!
       ERROR! Failed to stop running server, so refusing to try to start.
      root@myhost:~# mysqld --version
      mysqld  Ver 10.3.18-MariaDB-log for Linux on x86_64 (Source distribution)
      root@myhost:~#
      

      MDEV-20133 states that https://github.com/mysql/mysql-server/commit/6ce62a49d91c493dc0a7dd988858e4929f5ac320 will be handled by MDEV-14154 and we were hoping this would resolve the issue we've seen but those fixes don't seem to address this particular problem.

      Attachments

        1. mysqld.err
          7 kB
          Jason Milen
        2. mysqld-strace.txt
          2 kB
          Jason Milen

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jmilen Jason Milen
              Votes:
              0 Vote for this issue
              Watchers:
              4 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.