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

Can't write; duplicate key in table 'mysql.innodb_table_stats'

    XMLWordPrintable

Details

    Description

      Run the following statements, in which the ALTER statement is expected to execute successfully. However, the ALTER statement failed, and it seems that the table `mysql.innodb_table_stats` does not timely update its info.

      CREATE TABLE t1 (c1 INT) ENGINE=InnoDB;
      CREATE TABLE t2 (c1 INT) ENGINE=InnoDB;
      ALTER TABLE t1 STATS_PERSISTENT 0;
      DROP TABLE IF EXISTS t1;
      ALTER TABLE t2 RENAME t1; -- [23000][1022] (conn=33) Can't write; duplicate key in table 'mysql.innodb_table_stats'
      

      Attachments

        Activity

          People

            marko Marko Mäkelä
            John Jove John Jove
            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.