[hibernate-issues] [Hibernate-JIRA] Created: (ANN-798) TransactionTest is leaving some transaction opened after its execution, causing DB2 to hang

Juraci Paixao Krohling (JIRA) noreply at atlassian.com
Thu Jan 15 11:04:38 EST 2009


TransactionTest is leaving some transaction opened after its execution, causing DB2 to hang
-------------------------------------------------------------------------------------------

                 Key: ANN-798
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-798
             Project: Hibernate Annotations
          Issue Type: Bug
         Environment: DB2 and Annotations branch v3_2_1_GA_CP
            Reporter: Juraci Paixao Krohling


The first test to be executed after TransactionTest hangs forever, waiting for some transaction to be closed. 

The line 32 for org.hibernate.test.annotations.TestCase is the place where it hangs, so, you can add "getSessions().close()" to the end of testTransactionCommit from TransactionTest to simulate this problem without running multiple tests. 

As far as I could find, the transaction is not explicit and is "opened" in the last block of assertions in the test testTransactionCommit, between lines 43 and 50 of TransactionTest. If this part is commented out (or skipped) for DB2, everything else works fine. 

I suspect this is a problem with the test case, and that this last part of the test should be skipped for DB2, but as I could not find the exact root cause of this failure, I'll leave this as a bug for now. 

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

        



More information about the hibernate-issues mailing list