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

ER_KEY_NOT_FOUND upon online COPY ALTER on a partitioned table

    XMLWordPrintable

Details

    Description

      It appears that the "online" alter gets confused when concurrent DML moves rows between partitions.

      --source include/have_partition.inc
      --source include/have_debug_sync.inc
       
      create table t (a int) partition by hash(a) partitions 2;
      insert into t values (1),(3);
      set debug_sync= 'alter_table_online_progress WAIT_FOR goforit';
      --send
        alter table t force, algorithm=copy, lock=none;
       
      --connect (con1,localhost,root,,)
      update t set a = a + 1;
      set debug_sync= 'now SIGNAL goforit';
       
      --connection default
      --reap
       
      select * from t;
       
      # Cleanup
      set debug_sync= RESET;
      drop table t;
      

      bb-11.0-oalter 90cf6464fa

      mysqltest: At line 15: query 'reap' failed: ER_KEY_NOT_FOUND (1032): Can't find record in 't'
      

      Attachments

        Issue Links

          Activity

            People

              nikitamalyavin Nikita Malyavin
              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.