]
Juraci Paixao Krohling commented on HHH-4237:
---------------------------------------------
Adding a "s.connection().setAutoCommit(true);" just before the last "s =
getSessions().openSession();" makes it work, as this piece of the test expects the
connection to be in auto-commit mode.
TransactionTest is leaving some transaction opened after its
execution, causing DB2 to hang
-------------------------------------------------------------------------------------------
Key: HHH-4237
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-4237
Project: Hibernate Core
Issue Type: Bug
Components: annotations
Environment: DB2 and Annotations branch v3_2_1_GA_CP
Reporter: Juraci Paixao Krohling
Assignee: 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: