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

mariadb service won't shutdown when it's running and the OS datetime updated backwards

    XMLWordPrintable

    Details

      Description

      When I update the OS datetime *backwards* while `mariadb` is running, it causes `mariadb` to hang when I command it's service to stop.
      I've also noticed that this doesn't occur when I set the new OS datetime value to be grater than the current OS datetime, only backwards causes the hang.

      Steps to reproduce:

       
          sudo date --set="2018-10-04 20:00:00"
       
          sudo service mysql start
           * Starting MariaDB database server mysqld [ OK ]
       
          sudo service mysql stop
           * Stopping MariaDB database server mysqld [ OK ]
       
          sudo service mysql start
           * Starting MariaDB database server mysqld [ OK ]
       
          sudo date --set="2018-10-04 10:00:00"
       
          sudo service mysql stop
           * Stopping MariaDB database server mysqld
      
      

      > setting the date, starting the service, resetting the date -10 hours, stopping the service => hang

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              thiru Thirunarayanan Balathandayuthapani
              Reporter:
              jossef Jossef Harush
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: