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

XA rollback 'foreign_xid' is allowed inside active XA

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Fixed
    • 10.1, 10.2, 10.3, 10.4, 10.5
    • 10.5.2
    • Server
    • 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

              Elkin Andrei Elkin
              Elkin Andrei Elkin
              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.