Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
0485e519
Commit
0485e519
authored
Nov 28, 2018
by
Sergei Petrunia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-13155: XA recovery not supported for RocksDB
Added a testcase
parent
4a92165f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
71 additions
and
0 deletions
+71
-0
storage/rocksdb/mysql-test/rocksdb/r/xa.result
storage/rocksdb/mysql-test/rocksdb/r/xa.result
+32
-0
storage/rocksdb/mysql-test/rocksdb/t/xa-master.opt
storage/rocksdb/mysql-test/rocksdb/t/xa-master.opt
+1
-0
storage/rocksdb/mysql-test/rocksdb/t/xa.test
storage/rocksdb/mysql-test/rocksdb/t/xa.test
+38
-0
No files found.
storage/rocksdb/mysql-test/rocksdb/r/xa.result
0 → 100644
View file @
0485e519
#
# MDEV-13155: XA recovery not supported for RocksDB (Just a testcase)
#
call mtr.add_suppression("Found .* prepared XA transactions");
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;
SELECT * FROM t1;
a
connect con3,localhost,root,,test;
XA RECOVER;
formatID gtrid_length bqual_length data
1 3 0 xa1
1 3 0 xa2
XA ROLLBACK 'xa1';
XA COMMIT 'xa2';
SELECT a FROM t1;
a
3
4
DROP TABLE t1;
storage/rocksdb/mysql-test/rocksdb/t/xa-master.opt
0 → 100644
View file @
0485e519
--rocksdb_flush_log_at_trx_commit=1
storage/rocksdb/mysql-test/rocksdb/t/xa.test
0 → 100644
View file @
0485e519
--
echo
#
--
echo
# MDEV-13155: XA recovery not supported for RocksDB (Just a testcase)
--
echo
#
call
mtr
.
add_suppression
(
"Found .* prepared XA transactions"
);
--
connect
(
con1
,
localhost
,
root
,,
test
)
--
disable_warnings
DROP
TABLE
IF
EXISTS
t1
;
--
enable_warnings
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
SELECT
*
FROM
t1
;
--
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
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment