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

tokudb.locks-select-update-3 failed in buildbot with lock wait timeout

Details

    • 5.5.55

    Description

      http://buildbot.askmonty.org/buildbot/builders/bld-dan-release/builds/4308/steps/test_1/logs/stdio

      tokudb.locks-select-update-3             w2 [ fail ]
              Test ended at 2016-10-26 04:25:57
       
      CURRENT_TEST: tokudb.locks-select-update-3
      mysqltest: At line 27: query 'reap' failed: 1205: Lock wait timeout exceeded; try restarting transaction
       
      The result from queries just before the failure was:
      SET DEFAULT_STORAGE_ENGINE='tokudb';
      drop table if exists t;
      create table t (a int primary key, b int);
      insert into t values (1,0);
      set session transaction isolation level read committed;
      begin;
      select * from t where a=1 for update;
      a	b
      1	0
      update t set b=b+1 where a=1;
      set session transaction isolation level read committed;
      begin;
      select * from t where a=1 for update;
      commit;
      

      Attachments

        Issue Links

          Activity

            elenst Elena Stepanova created issue -
            elenst Elena Stepanova made changes -
            Field Original Value New Value
            elenst Elena Stepanova made changes -
            Sprint 5.5.55&10.0.30 [ 138 ]
            Assignee Elena Stepanova [ elenst ]
            elenst Elena Stepanova made changes -
            Status Open [ 1 ] In Progress [ 3 ]

            The failure is rare (only 4 recorded occasions), but the reason seems obvious, the problem is easily reproducible with the additional sleep:

            diff --git a/storage/tokudb/mysql-test/tokudb/t/locks-select-update-3.test b/storage/tokudb/mysql-test/tokudb/t/locks-select-update-3.test
            index a563f06..3d0c018 100644
            --- a/storage/tokudb/mysql-test/tokudb/t/locks-select-update-3.test
            +++ b/storage/tokudb/mysql-test/tokudb/t/locks-select-update-3.test
            @@ -21,6 +21,7 @@ begin;
             send select * from t where a=1 for update;
             connection default;
             # t1 commit
            +--sleep 4
             commit;
             connection conn1;
             # t2 select for update returns
            

            Default tokudb_lock_timeout is only 4 seconds, it's not much; if on whatever reason SELECT or COMMIT take time, the timeout can be exceeded.

            elenst Elena Stepanova added a comment - The failure is rare (only 4 recorded occasions), but the reason seems obvious, the problem is easily reproducible with the additional sleep: diff --git a/storage/tokudb/mysql-test/tokudb/t/locks-select-update-3.test b/storage/tokudb/mysql-test/tokudb/t/locks-select-update-3.test index a563f06..3d0c018 100644 --- a/storage/tokudb/mysql-test/tokudb/t/locks-select-update-3.test +++ b/storage/tokudb/mysql-test/tokudb/t/locks-select-update-3.test @@ -21,6 +21,7 @@ begin; send select * from t where a=1 for update; connection default; # t1 commit +--sleep 4 commit; connection conn1; # t2 select for update returns Default tokudb_lock_timeout is only 4 seconds, it's not much; if on whatever reason SELECT or COMMIT take time, the timeout can be exceeded.

            The upstream bug: https://bugs.launchpad.net/percona-server/+bug/1662909.
            I've added a suggestion to change the timeout, but will also do it in our tree for now.

            elenst Elena Stepanova added a comment - The upstream bug: https://bugs.launchpad.net/percona-server/+bug/1662909 . I've added a suggestion to change the timeout, but will also do it in our tree for now.
            elenst Elena Stepanova made changes -
            Labels upstream
            elenst Elena Stepanova made changes -
            elenst Elena Stepanova added a comment - https://github.com/MariaDB/server/commit/6dc00f97b7db13975a26fd92ffd08aaa60339b87
            elenst Elena Stepanova made changes -
            Fix Version/s 10.0.30 [ 22313 ]
            Fix Version/s 10.1.22 [ 22502 ]
            Fix Version/s 10.2.5 [ 22117 ]
            Fix Version/s 10.0 [ 16000 ]
            Resolution Fixed [ 1 ]
            Status In Progress [ 3 ] Closed [ 6 ]
            serg Sergei Golubchik made changes -
            Workflow MariaDB v3 [ 79165 ] MariaDB v4 [ 151519 ]

            People

              elenst Elena Stepanova
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              1 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.