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

    • Bug
    • Status: Open (View Workflow)
    • Minor
    • Resolution: Unresolved
    • 5.5, 10.0, 10.1, 10.2, 10.3, 10.4
    • 10.4
    • Admin statements, Server
    • None

    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

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

            Dates

              Created:
              Updated:

              Git Integration

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