[MDEV-10532] XA (two-phase commit) transaction crash Galera clusters Created: 2016-08-10 Updated: 2019-05-17 Resolved: 2019-05-17 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data Manipulation - Delete, Data Manipulation - Update, Galera, Platform RedHat, Storage Engine - InnoDB, XA |
| Affects Version/s: | 10.1.14 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Don Wolford | Assignee: | Jan Lindström (Inactive) |
| Resolution: | Incomplete | Votes: | 1 |
| Labels: | 2PC, XA, galera, two-phase_commit | ||
| Environment: |
RHEL 6.7 (Santiago) |
||
| Description |
|
If XA DML is submitted to an operating Galera cluster and innodb_support_xa is on, the cluster will crash as soon as an XA transaction is committed, and it must be rebuilt as a new cluster. If innodb_support_xa is off, the cluster won't crash, but XA transactions committed are not propagated to the other nodes, which puts them out of sync, causing the nodes to fail later when a contradictory change is posted. I understand that XA is documented as not supported in a Galera cluster. The purpose of this issue is to have such transactions rejected when attempted, instead of causing the cluster to fail. (And, of course, it would be great if XA were supported in Galera, but that's not a bug...) |
| Comments |
| Comment by Ondra Chaloupka [ 2017-02-02 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I experience the same issue. Having run java application on Wildfly. Using MariaDB Cluster 10.1.10 with jdbc driver version 1.5.4. I was trying to reproduce the issue by simply running SQL commands against the database but that way I wasn't succesful. My attempt was like
When such sequence is run by the java app the MariaDB cluster node crashes and the commit returns exception
and any other next connection returns exception
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Jan Lindström (Inactive) [ 2018-07-19 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hi, I could not repeat your problem using given instructions:
If you have error logs from server that crashes they could be useful to identify the issue. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Jan Lindström (Inactive) [ 2019-05-17 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
XA-transactions are not really even supported on Galera 3, thus closing this bug. |