[jboss-jira] [JBoss JIRA] (WFLY-5181) Recovery Manager do rollback when RuntimeException is thrown in commit

Tom Jenkinson (JIRA) issues at jboss.org
Mon Aug 24 09:58:29 EDT 2015


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

Tom Jenkinson commented on WFLY-5181:
-------------------------------------

Hi Hayk,

I will close this because we don't support none-spec compliant XAResources in the manner you are expecting. If you disagree, it will be better to create a discussion on the Narayana forum, but I am pretty sure our position would not change.

Thanks,
Tom

> Recovery Manager do rollback when RuntimeException is thrown in commit
> ----------------------------------------------------------------------
>
>                 Key: WFLY-5181
>                 URL: https://issues.jboss.org/browse/WFLY-5181
>             Project: WildFly
>          Issue Type: Bug
>          Components: Transactions
>            Reporter: Hayk Hovsepyan
>            Assignee: Tom Jenkinson
>
> When RuntimeException is thrown on "commit" method call of "org.jboss.jca.core.tx.jbossts.XAResourceWrapperImpl", then Recovery Manager roll-backs this transaction.
> Test flow:
> 1) prepare jdbc xa resource
> 2) prepare test xa resource
> 3) commit jdbc xa resource
> 4) RuntimeException is thrown
> 5) commit test xa resource
> 6) do recovery
> 7) as the jdbc xa resource was already prepared the recovery will
> do commit on the prepare resource, but in fact it roll-backs.
> This happens for JTA only.
>  Reproduced on Oracle (12c and 11gR2) and PostgreSQL 9.3.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the jboss-jira mailing list