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

Hayk Hovsepyan (JIRA) issues at jboss.org
Mon Aug 24 07:07:26 EDT 2015


Hayk Hovsepyan created WFLY-5181:
------------------------------------

             Summary: 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