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

main.xa - drop table failed: ER_LOCK_WAIT_TIMEOUT

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 12.3
    • 12.3
    • Tests, MTR
    • None

    Description

      https://buildbot.mariadb.org/#/builders/1098/builds/3066 (PR) - parent 6660d0bdd7c8bdca9ec4e4e7e0f11df4e22c30f1

      CURRENT_TEST: main.xa
      mysqltest: At line 133: query 'drop table t1' failed: ER_LOCK_WAIT_TIMEOUT (1205): Lock wait timeout exceeded; try restarting transaction
       
      The result from queries just before the failure was:
      < snip >
      xa end 'tr1#$', 'bq';
      xa prepare 'tr1#$', 'bq';
      xa recover format='SQL';
      formatID	gtrid_length	bqual_length	data
      1	5	2	X'7472312324',X'6271'
      xa rollback 'tr1#$', 'bq';
      xa start 'tr1#$', 'bq', 3;
      insert t1 values (40);
      xa end 'tr1#$', 'bq', 3;
      xa prepare 'tr1#$', 'bq', 3;
      xa recover format='RAW';
      formatID	gtrid_length	bqual_length	data
      3	5	2	tr1#$bq
      xa recover format='PLAIN';
      ERROR HY000: Unknown XA RECOVER format name: 'PLAIN'
      xa recover format='SQL';
      formatID	gtrid_length	bqual_length	data
      3	5	2	X'7472312324',X'6271',3
      xa rollback 'tr1#$', 'bq', 3;
      drop table t1;
       
      More results from queries before failure can be found in /home/buildbot/amd64-fedora-43/build/mysql-test/var/11/log/xa.log
       
      
      

      Or

      https://buildbot.mariadb.org/#/builders/350/builds/36389 pr's main branch commit 637f8c4db7533fc4f22433f042cc83f7ba3bfb41

             Test ended at 2026-04-05 03:04:48
       
      CURRENT_TEST: main.xa
      mysqltest: At line 826: query 'drop table t1,t2,t3' failed: ER_LOCK_WAIT_TIMEOUT (1205): Lock wait timeout exceeded; try restarting transaction
       
      The result from queries just before the failure was:
      < snip >
      select * from t1 for update;
      a
      1
      connect con2,localhost,root;
      xa start 'c:baz';
      update t2 set b=102;
      update t1 set a=103;
      connection default;
      xa commit 'c:foo';
      ERROR XAE09: XAER_OUTSIDE: Some work is done outside global transaction
      select * from t2 for update;
      Got one of the listed errors
      xa commit 'c:foo';
      ERROR XAE09: XAER_OUTSIDE: Some work is done outside global transaction
      connection con2;
      disconnect con2;
      connection default;
      xa rollback 'c:bar';
      xa commit 'c:foo';
      drop table t1,t2,t3;
       
      More results from queries before failure can be found in /home/buildbot/ppc64le-ubuntu-2204/build/mysql-test/var/10/log/xa.log
      

      CR show entries in variety of builder in 12.3 and main. A small number of failures occured <12.3 but almost always on slow s390x/ppc64le/asan builders. Noteablly different from MDEV-39301 which is affecting view protocol.

      Attachments

        Issue Links

          Activity

            People

              svoj Sergey Vojtovich
              danblack Daniel Black
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.