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

ER_KEY_NOT_FOUND upon concurrent CHANGE column to autoinc and DML

    XMLWordPrintable

Details

    Description

      Notes:

      • A fix for MDEV-31043 is already in the branch. Besides, this time the failure affects transactional engines as well, reproducible with at least InnoDB, MyISAM, Aria, HEAP.
      • The test case is non-deterministic, run with --repeat=N. It fails for me on almost every attempt, but it can vary on different machines and builds.
      • The second table (t2) seems to be important somehow, at least I couldn't replace its operation with just a sleep.

      --source include/have_sequence.inc
       
      CREATE TABLE t1 (b int);
      INSERT INTO t1 VALUES (0),(0);
       
      CREATE TABLE t2 (a int);
      INSERT INTO t2 (a) select seq from seq_1_to_128;
       
      --connect (con1,localhost,root,,)
      --send
        ALTER TABLE t1 MODIFY b SERIAL;
       
      --connection default
      DELETE FROM t2 ORDER BY a LIMIT 1;
      DELETE FROM t1 ORDER BY b LIMIT 2;
       
      --connection con1
      --reap
       
      # Cleanup
      DROP TABLE t1, t2;
      

      bb-11.0-oalter 6f5427417eff

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

      Attachments

        Issue Links

          Activity

            People

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