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

XA ROLLBACK reports ER_XAER_NOTA for another connection's XA PREPARE

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 10.2, 10.6
    • Fix Version/s: 10.5
    • Component/s: XA
    • Labels:
      None

      Description

      The following test returns an error for the first XA ROLLBACK statement. I think that at least starting with 10.5 (thanks to the changes of MDEV-742) it should be possible to detach the transaction from the original connection and allow another connection to execute the XA COMMIT or XA ROLLBACK.

      --source include/have_innodb.inc
      create table test(x int) engine=innodb;
      xa start 0x01,0x01,0x01;
      insert into test(x) values (1);
      xa end 0x01,0x01,0x01;
      xa prepare 0x01,0x01,0x01;
      xa recover;
      connect other,localhost,root,,;
      xa recover;
      --error ER_XAER_NOTA
      xa rollback 0x01,0x01,0x01;
      disconnect other;
      connection default;
      xa rollback 0x01,0x01,0x01;
      drop table test;
      

      Note: XA RECOVER will list the transaction to both connections.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              marko Marko Mäkelä
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: