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

CHECK reports a misplaced row on partitioned table after dropping versioning

    XMLWordPrintable

Details

    Description

      Note: MDEV-21011 has already been fixed in all branches.

      --source include/have_innodb.inc
      --source include/have_partition.inc
       
      CREATE TABLE t1 (pk INT PRIMARY KEY) WITH SYSTEM VERSIONING ENGINE=InnoDB PARTITION BY KEY() PARTITIONS 3;
      INSERT INTO t1 VALUES (1),(2);
      ALTER TABLE t1 DROP SYSTEM VERSIONING;
      CHECK TABLE t1;
       
      # Cleanup
      DROP TABLE t1;
      

      10.3 b0fa3080

      CHECK TABLE t1;
      Table	Op	Msg_type	Msg_text
      test.t1	check	error	Found a misplaced row
      test.t1	check	error	Partition p1 returned error
      test.t1	check	error	Upgrade required. Please do "REPAIR TABLE `t1`" or dump/reload to fix it!
      

      Reproducible on 10.3-10.5 with at least MyISAM and InnoDB.

      Attachments

        Issue Links

          Activity

            People

              midenok Aleksey Midenkov
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              2 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.