[MDEV-13155] XA recovery not supported for RocksDB Created: 2017-06-22 Updated: 2019-01-20 Resolved: 2018-11-28 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - RocksDB, XA |
| Affects Version/s: | 10.2 |
| Fix Version/s: | 10.2.20, 10.3.12 |
| Type: | Bug | Priority: | Major |
| Reporter: | Elena Stepanova | Assignee: | Sergei Petrunia |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
10.2 0992be927e1c686c39c39fe53fc2a7869d55143d |
||
| Description |
|
I'm not sure whether it's supposed to work. If it's not, it should probably be documented.
Both transactions are forgotten after recovery:
|
| Comments |
| Comment by Sergei Petrunia [ 2018-11-28 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Seems to work in the current code. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Valerii Kravchuk [ 2019-01-19 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Why "Dix Version/s" say 10.3.12? For me XA RECOVER etc work on 10.3.7 as well:
I killed the server, now upon restart we see in the log:
Transaction is there in prepared state:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Sergei Petrunia [ 2019-01-20 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I have set fixVersion to the version that I have pushed the testcase into. I'm not sure which specific revision fixed it. valerii do you think it is worth the time to find that out? | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Valerii Kravchuk [ 2019-01-20 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Current setting may be interpreted as the problem was fixed only in 10.3.12 and in all previous versions your test case fails. I think checking it with all 10.3 GA versions at least (and maybe recent 10.2.x) makes sense. My test is from my work on other cases (people stated there is a difference how MyRocks works vs InnoDB when mysqld crashes), then I was looking for known XA bugs related to MyRocks, found this one and decided to add that it must already work in 10.3.7 based on what I've seen). |