db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julius Stroffek (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DERBY-2871) XATransactionTest gets XaException: Error executing a XAResource.commit(), server returned XAER_PROTO.
Date Wed, 09 Apr 2008 12:19:24 GMT

    [ https://issues.apache.org/jira/browse/DERBY-2871?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12587161#action_12587161

Julius Stroffek commented on DERBY-2871:

Dyre, thanks for working on this.

This is due the SetTransactionIsolationTest in jdbcapi test package sets the derby.locks.waitTimeout
and derby.locks.deadLockTimeout to 3 which is not restored back to default. Afterwards, the
xaTransactionTimeout test runs with a lock timeout to be smaller than an xa transaction timeout
so the select on line 233 which checks that the locks are released has a smaller timeout than
transactions them self. That's why I changed those properties to default values in the previous

I think that if you use DatabasePropertyTestSetup.setLockTimeouts to setup timeouts in "suite"
method the test will stop failing.

The mistakes I made in my last patch are stupid and are done mostly because I have not spend
required time on those changes. I have a patch prepared for this for some time now but wanted
to spend more time to review that I addressed all the comments. Your patch looks good to me
- you performed some more cleanups in the test (removed unnecessary Assert class when calling
assert functions).

> XATransactionTest gets XaException: Error executing a XAResource.commit(), server returned
> ------------------------------------------------------------------------------------------------------
>                 Key: DERBY-2871
>                 URL: https://issues.apache.org/jira/browse/DERBY-2871
>             Project: Derby
>          Issue Type: Bug
>          Components: JDBC
>    Affects Versions:
>         Environment: OS: HP-UX v1.11 i 
> JDK: HP 
>            Reporter: Henri van de Scheur
>            Assignee: Julius Stroffek
>            Priority: Minor
>         Attachments: d2871-test.diff, d2871-test.stat, d2871.diff, d2871.diff, d2871.diff,
d2871.diff, d2871.stat, d2871.stat, d2871.stat, d2871.stat, DERBY-2871_020108.diff, derby-2871_NOT_FOR_COMMIT.diff
> Method: org.apache.derbyTesting.functionTests.tests.jdbcapi.XATransactionTest
> Signature:
> %XAER_PROTO : Error executing a XAResource.commit(), server returned XAER_PROTO%
> Also see: http://dbtg.thresher.com/derby/test/

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message