[jbossts-issues] [JBoss JIRA] (JBTM-2443) Raise a JTA HeuristicMixed if a one phase commit XAResource raises RMFAIL

Tom Jenkinson (JIRA) issues at jboss.org
Wed Jul 15 09:53:04 EDT 2015

    [ https://issues.jboss.org/browse/JBTM-2443?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13089709#comment-13089709 ] 

Tom Jenkinson commented on JBTM-2443:

Previously if RMFAIL was returned out of XAResource.commit(true, xid1) we did not return an exception and left it to the database to resolve the issue and potentially leave it to return the Xid during recovery using some assistance from its client side driver for example. The new behaviour would allow the database to do that the same as it does today but an exception would also be thrown to the client to say that there is a HeuristicMixed to be aware the result of the commit may not be reliable.

> Raise a JTA HeuristicMixed if a one phase commit XAResource raises RMFAIL
> -------------------------------------------------------------------------
>                 Key: JBTM-2443
>                 URL: https://issues.jboss.org/browse/JBTM-2443
>             Project: JBoss Transaction Manager
>          Issue Type: Feature Request
>          Components: JTA, JTS
>            Reporter: Tom Jenkinson
>            Assignee: Tom Jenkinson
>             Fix For: 5.2.0
> If a one phase commit is performed on an XAResource and it raises RMFAIL we have no way to know whether the resource committed or rolled back. We currently do not raise an exception in this scenario as an interpretation of the XA spec allows us to.
> We have had community feedback that this has an issue for user applications and having consulted with the rest of our community and no negative comments received we will modify the behavior so that this scenario results in the closest exception that JTA allows HeuristicMixed.

This message was sent by Atlassian JIRA

More information about the jbossts-issues mailing list