Bug #73033 | Not possible commit XA transaction from different connection | ||
---|---|---|---|
Submitted: | 18 Jun 2014 10:02 | Modified: | 26 Jul 2014 14:09 |
Reporter: | Ondrej Chaloupka | Email Updates: | |
Status: | No Feedback | Impact on me: | |
Category: | Connector / J | Severity: | S2 (Serious) |
Version: | 5.1.31 | OS: | Any |
Assigned to: | Assigned Account | CPU Architecture: | Any |
[18 Jun 2014 10:02]
Ondrej Chaloupka
[26 Jun 2014 7:52]
Alexander Soklakov
Hi Ondrej, Please report your MySQL server version. If you use 5.7.x then please be aware that c/J is affected by incompatibly change of XA RECOVER output format. We're waiting for server backfix of this problem. Also, please refer MySQL XA documentation http://dev.mysql.com/doc/refman/5.0/en/xa.html, we have some restrictions that could cause your problems: "Note that if an XA transaction is in the ACTIVE state, you cannot issue any statements that cause an implicit commit. That would violate the XA contract because you could not roll back the XA transaction. You will receive the following error if you try to execute such a statement: ERROR 1399 (XAE07): XAER_RMFAIL: The command cannot be executed when global transaction is in the ACTIVE state Statements to which the preceding remark applies are listed at Section 13.3.3, “Statements That Cause an Implicit Commit” http://dev.mysql.com/doc/refman/5.0/en/implicit-commit.html. "
[26 Jun 2014 11:04]
Ondrej Chaloupka
Hi, my MySQL server version is 5.5.34. I do understand that the usage which gives 'transaction is in the ACTIVE state' error is not correct. Just my point was that other vendors are able to handle that. I do understand that the create, drop and similar commands mean implicit commit but the failure came from insert command in my use case. And if I understand right the limitation I do not use any of the cases mentioned here: http://dev.mysql.com/doc/refman/5.0/en/xa-restrictions.html In case that my test case falls to that group, please, let me know. Thanks Ondra
[26 Jun 2014 11:34]
Alexander Soklakov
For 5.5.34 server you could face some XA bugs: http://bugs.mysql.com/search.php?search_for=&bug_type[]=Server%3A+XA&status[]=All&severity... Please ensure that your scenario work with other clients and 5.5.34 server.
[26 Jun 2014 14:01]
Ondrej Chaloupka
Hi, thanks for the link. I'm sorry but I didn't understand what you mean by term 'clien' in the context of your phrase: checking with other clients and 5.5.34 server? Do you mean different jdbc driver versions or what exactly? Thank you for help.
[26 Jun 2014 14:09]
Alexander Soklakov
I mean the first of all a command-line client, ...server-install-dir/bin/mysql
[27 Jul 2014 1:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".