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

Server reports "Fatal error" in the error log on an ordinary query failure

    XMLWordPrintable

    Details

      Description

      CREATE TABLE t1 (a INT);
      LOCK TABLE t1 WRITE;
      FLUSH PRIVILEGES;
       
      # Cleanup
      DROP TABLE t1;
      

      FLUSH PRIVILEGES fails with an error

      mysqltest: At line 3: query 'FLUSH PRIVILEGES' failed: 1100: Table 'db' was not locked with LOCK TABLES
      

      however the error log reports the problem twice: once as a normal error, and once as a Fatal error:

      2018-12-23  4:23:27 4 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'db' was not locked with LOCK TABLES
      2018-12-23  4:23:27 4 [ERROR] Can't open and lock privilege tables: Table 'db' was not locked with LOCK TABLES
      

      Naturally, no crash or abort occurs, the "Fatal error" is bogus.

        Attachments

          Activity

            People

            Assignee:
            serg Sergei Golubchik
            Reporter:
            elenst Elena Stepanova
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: