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

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

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

          Transition Time In Source Status Execution Times
          Marko Mäkelä made transition -
          Open Confirmed
          59m 36s 1
          Marko Mäkelä made transition -
          Confirmed In Progress
          128d 22h 52m 1
          Marko Mäkelä made transition -
          In Progress In Review
          2d 20h 8m 1
          Marko Mäkelä made transition -
          In Review Closed
          8h 12m 1

          People

            marko Marko Mäkelä
            John Jove John Jove
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

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