Uploaded image for project: 'Percona Server'
  1. Percona Server
  2. PS-2415

Test main.innodb_mysql_lock is unstable

    Details

      Description

      Seen on PS 5.5 trunk, ASan, https://jenkins.percona.com/job/percona-server-5.5-asan-param/159/BUILD_TYPE=debug-asan,Host=ubuntu-xenial-64bit/consoleText:

      main.innodb_mysql_lock                   w3 [ fail ]
              Test ended at 2018-01-19 08:22:17
      
      CURRENT_TEST: main.innodb_mysql_lock
      mysqltest: At line 51: query 'INSERT INTO t1 VALUES (2)' succeeded - should have failed with errno 1213...
      
      The result from queries just before the failure was:
      #
      # Bug #22876 Four-way deadlock
      #
      DROP TABLE IF EXISTS t1;
      # Connection 1
      set @@autocommit=0;
      CREATE TABLE t1(s1 INT UNIQUE) ENGINE=innodb;
      INSERT INTO t1 VALUES (1);
      # Connection 2
      set @@autocommit=0;
      INSERT INTO t1 VALUES (2);
      INSERT INTO t1 VALUES (1);
      # Connection 3
      set @@autocommit=0;
      DROP TABLE t1;
      # Connection 1
      # Connection 1 is now holding the lock.
      # Issuing insert from connection 1 while connection 2&3 
      # is waiting for the lock should give a deadlock error.
      safe_process[7499]: Child process: 7500, exit: 1
      
      

      It also matches https://jira.mariadb.org/browse/MDEV-7861

        Attachments

          Expenses

            Activity

              People

              • Assignee:
                laurynas.biveinis Laurynas Biveinis
                Reporter:
                laurynas.biveinis Laurynas Biveinis
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: