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

XA recovery not supported for RocksDB

Details

    Description

      I'm not sure whether it's supposed to work. If it's not, it should probably be documented.

      # Run with --mysqld=--plugin-load-add=ha_rocksdb
       
      --connect (con1,localhost,root,,test)
      DROP TABLE IF EXISTS t1;
      CREATE TABLE t1 (a INT) ENGINE=RocksDB;
       
      XA START 'xa1';
      INSERT INTO t1 (a) VALUES (1),(2);
      XA END 'xa1';
      XA PREPARE 'xa1';
       
      --connect (con2,localhost,root,,test)
      XA START 'xa2';
      INSERT INTO t1 (a) VALUES (3);
      INSERT INTO t1 (a) VALUES (4);
      XA END 'xa2';
      XA PREPARE 'xa2';
       
      --connection default
      sleep 1;
       
      --let $shutdown_timeout= 0
      --source include/restart_mysqld.inc
       
      --connect (con3,localhost,root,,test)
      --disable_abort_on_error
      XA RECOVER;
      XA ROLLBACK 'xa1';
      XA COMMIT 'xa2';
      SELECT a FROM t1;
      DROP TABLE t1;
      

      Both transactions are forgotten after recovery:

      connect  con3,localhost,root,,test;
      XA RECOVER;
      formatID	gtrid_length	bqual_length	data
      XA ROLLBACK 'xa1';
      ERROR XAE04: XAER_NOTA: Unknown XID
      XA COMMIT 'xa2';
      ERROR XAE04: XAER_NOTA: Unknown XID
      SELECT a FROM t1;
      a
      DROP TABLE t1;
      

      Attachments

        Activity

          elenst Elena Stepanova created issue -
          psergei Sergei Petrunia made changes -
          Field Original Value New Value
          issue.field.resolutiondate 2018-11-28 09:41:58.0 2018-11-28 09:41:58.545
          psergei Sergei Petrunia made changes -
          Fix Version/s 10.2.20 [ 23212 ]
          Fix Version/s 10.3.12 [ 23214 ]
          Fix Version/s 10.2 [ 14601 ]
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Closed [ 6 ]
          serg Sergei Golubchik made changes -
          Workflow MariaDB v3 [ 81339 ] MariaDB v4 [ 152367 ]

          People

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