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

Server slow to shutdown if system time goes backwards

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Duplicate
    • Affects Version/s: 10.3.15, 10.3.17, 10.3.18
    • Fix Version/s: N/A
    • Component/s: Server
    • Labels:
      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

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              jmilen Jason Milen
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Git Integration