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

XA rollback 'foreign_xid' is allowed inside active XA

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 10.1, 10.2, 10.3, 10.4, 10.5
    • Fix Version/s: 10.5.2
    • Component/s: Server
    • Labels:
      None

      Description

      --connection crash_me
      CREATE TABLE t1 (pk INT PRIMARY KEY) ENGINE=InnoDB;

      1. prepare a future foreign xid
        xa start '1'; insert into t1 set pk=1; xa end '1'; xa prepare '1';

        # KILL server_process & restart
        xa recover; # =>
        +----------+--------------+--------------+------+
        | formatID | gtrid_length | bqual_length | data |
        +----------+--------------+--------------+------+
        |        1 |            1 |            0 | 1    |
        +----------+--------------+--------------+------+
         
        --connection default
        xa start '2';
        --error 0
        xa rollback '1' .
        

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Elkin Andrei Elkin
              Reporter:
              Elkin Andrei Elkin
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: