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

ER_KEY_NOT_FOUND upon INSERT into InnoDB table with vector key under READ COMMITTED

Details

    Description

      The test case is based on an attempt to load a mariadb-dump dump, foreign_key_checks and unique_checks settings come from there. Only transaction isolation level is a custom setting (originally a startup option). Also reproducible with READ UNCOMMITTED.

      --source include/have_innodb.inc
       
      SET unique_checks=0, foreign_key_checks=0;
      SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED;
       
      CREATE TABLE t (v VECTOR(1) NOT NULL, VECTOR (v)) ENGINE=InnoDB;
      INSERT INTO t VALUES (0x31313131),(0x32323232);
       
      # Cleanup
      DROP TABLE t;
      

      6945a4af85fb8e1af6b36aadde0485645ac6a77e

      CURRENT_TEST: bug.w4
      mysqltest: At line 7: query 'INSERT INTO t VALUES (0x31313131),(0x32323232)' failed: ER_KEY_NOT_FOUND (1032): Can't find record in 't'
      

      Attachments

        Issue Links

          Activity

            elenst Elena Stepanova created issue -
            elenst Elena Stepanova made changes -
            Field Original Value New Value
            elenst Elena Stepanova made changes -
            Description The test case is based on an attempt to load a mariadb-dump dump, foreign_key_checks and unique_checks settings come from there. Only transaction isolation level is a custom setting (originally a startup option).

            {code:sql}
            --source include/have_innodb.inc

            SET unique_checks=0, foreign_key_checks=0;
            SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED;

            CREATE TABLE t (v VECTOR(1) NOT NULL, VECTOR (v)) ENGINE=InnoDB;
            INSERT INTO t VALUES (0x31313131),(0x32323232);

            # Cleanup
            DROP TABLE t;
            {code}
            {noformat:title=6945a4af85fb8e1af6b36aadde0485645ac6a77e}
            CURRENT_TEST: bug.w4
            mysqltest: At line 7: query 'INSERT INTO t VALUES (0x31313131),(0x32323232)' failed: ER_KEY_NOT_FOUND (1032): Can't find record in 't'
            {noformat}
            The test case is based on an attempt to load a mariadb-dump dump, {{foreign_key_checks}} and {{unique_checks}} settings come from there. Only transaction isolation level is a custom setting (originally a startup option).

            {code:sql}
            --source include/have_innodb.inc

            SET unique_checks=0, foreign_key_checks=0;
            SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED;

            CREATE TABLE t (v VECTOR(1) NOT NULL, VECTOR (v)) ENGINE=InnoDB;
            INSERT INTO t VALUES (0x31313131),(0x32323232);

            # Cleanup
            DROP TABLE t;
            {code}
            {noformat:title=6945a4af85fb8e1af6b36aadde0485645ac6a77e}
            CURRENT_TEST: bug.w4
            mysqltest: At line 7: query 'INSERT INTO t VALUES (0x31313131),(0x32323232)' failed: ER_KEY_NOT_FOUND (1032): Can't find record in 't'
            {noformat}
            elenst Elena Stepanova made changes -
            Description The test case is based on an attempt to load a mariadb-dump dump, {{foreign_key_checks}} and {{unique_checks}} settings come from there. Only transaction isolation level is a custom setting (originally a startup option).

            {code:sql}
            --source include/have_innodb.inc

            SET unique_checks=0, foreign_key_checks=0;
            SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED;

            CREATE TABLE t (v VECTOR(1) NOT NULL, VECTOR (v)) ENGINE=InnoDB;
            INSERT INTO t VALUES (0x31313131),(0x32323232);

            # Cleanup
            DROP TABLE t;
            {code}
            {noformat:title=6945a4af85fb8e1af6b36aadde0485645ac6a77e}
            CURRENT_TEST: bug.w4
            mysqltest: At line 7: query 'INSERT INTO t VALUES (0x31313131),(0x32323232)' failed: ER_KEY_NOT_FOUND (1032): Can't find record in 't'
            {noformat}
            The test case is based on an attempt to load a mariadb-dump dump, {{foreign_key_checks}} and {{unique_checks}} settings come from there. Only transaction isolation level is a custom setting (originally a startup option). Also reproducible with READ UNCOMMITTED.

            {code:sql}
            --source include/have_innodb.inc

            SET unique_checks=0, foreign_key_checks=0;
            SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED;

            CREATE TABLE t (v VECTOR(1) NOT NULL, VECTOR (v)) ENGINE=InnoDB;
            INSERT INTO t VALUES (0x31313131),(0x32323232);

            # Cleanup
            DROP TABLE t;
            {code}
            {noformat:title=6945a4af85fb8e1af6b36aadde0485645ac6a77e}
            CURRENT_TEST: bug.w4
            mysqltest: At line 7: query 'INSERT INTO t VALUES (0x31313131),(0x32323232)' failed: ER_KEY_NOT_FOUND (1032): Can't find record in 't'
            {noformat}
            elenst Elena Stepanova made changes -
            Summary ER_KEY_NOT_FOUND upon INSERT into InnoDB table with vector key ER_KEY_NOT_FOUND upon INSERT into InnoDB table with vector key under READ COMMITTED
            serg Sergei Golubchik made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            serg Sergei Golubchik made changes -
            Status In Progress [ 3 ] In Testing [ 10301 ]
            serg Sergei Golubchik made changes -
            Fix Version/s 11.7.1 [ 29913 ]
            Fix Version/s 11.7 [ 29815 ]
            Resolution Fixed [ 1 ]
            Status In Testing [ 10301 ] Closed [ 6 ]

            People

              serg Sergei Golubchik
              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.