Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-3841 LevelDB storage engine
  3. MDEV-4046

LevelDB: Multi-table DELETE locks itself and ends with ER_LOCK_WAIT_TIMEOUT

    XMLWordPrintable

Details

    • Technical task
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • None
    • None
    • None

    Description

      Test case:

      CREATE TABLE t1 (pk int primary key) ENGINE=LevelDB;
      INSERT INTO t1 VALUES (1),(2);
       
      CREATE TABLE t2 LIKE t1;
      INSERT INTO t2 SELECT * FROM t1;
       
      DELETE t2.* FROM t1, t2;

      Output:

      CREATE TABLE t1 (pk int primary key) ENGINE=LevelDB;
      INSERT INTO t1 VALUES (1),(2);
      CREATE TABLE t2 LIKE t1;
      INSERT INTO t2 SELECT * FROM t1;
      main.t1                                  [ fail ]
              Test ended at 2013-01-15 04:13:16
       
      CURRENT_TEST: main.t1
      mysqltest: At line 8: query 'DELETE t2.* FROM t1, t2' failed: 1205: Lock wait timeout exceeded; try restarting transaction

      revision-id: psergey@askmonty.org-20130114195003-fgp08gh4swgcf1cx
      revno: 4486
      branch-nick: mysql-5.6-leveldb

      Attachments

        Activity

          People

            psergei Sergei Petrunia
            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.