[jboss-jira] [JBoss JIRA] Resolved: (JBAS-6407) TestResourceAdapterTxInflow can't assume one phase commit

Jesper Pedersen (JIRA) jira-events at lists.jboss.org
Thu Jan 22 13:02:45 EST 2009


     [ https://jira.jboss.org/jira/browse/JBAS-6407?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jesper Pedersen resolved JBAS-6407.
-----------------------------------

    Fix Version/s: JBossAS-5.0.1.GA
                   JBossAS-4.2.4.GA
                   JBossAS-6.0.0.Alpha1
       Resolution: Done


> TestResourceAdapterTxInflow can't assume one phase commit
> ---------------------------------------------------------
>
>                 Key: JBAS-6407
>                 URL: https://jira.jboss.org/jira/browse/JBAS-6407
>             Project: JBoss Application Server
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: JCA service, Test Suite
>    Affects Versions: JBossAS-5.0.0.GA
>            Reporter: Jonathan Halliday
>            Assignee: Jesper Pedersen
>             Fix For: JBossAS-5.0.1.GA, JBossAS-4.2.4.GA, JBossAS-5.1.0.Beta1, JBossAS-6.0.0.Alpha1
>
>
> The TestWork class in TestResourceAdapterTxInflow implements XAResource but has some methods stubbed out to throw exceptions, on the basis that they are never invoked. One such is prepare(), on the assumption that a transaction containing only a single resource will always use one phase commit, skipping the prepare call. This is not the case. Whilst 1PC is a useful performance optimisation, it's not required. Also, it's not possible in certain distributed transaction cases, depending on the use of interposition. In particular, the JBossTS JTS implementation won't always use 1PC, which can cause this test case to fail.
> Fix: modify TestWork.prepare to return XAResource.XA_OK instead of throwing XAException

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list