]
Juraci Paixao Krohling resolved EJB-406.
----------------------------------------
Resolution: Fixed
Revision 15686.
Unclosed sessions/transaction
-----------------------------
Key: EJB-406
URL:
http://opensource.atlassian.com/projects/hibernate/browse/EJB-406
Project: Hibernate Entity Manager
Issue Type: Bug
Components: EntityManager
Environment: Tested in DB2 v8, probably affects most RDBMS's as well
Reporter: Juraci Paixao Krohling
Assignee: Juraci Paixao Krohling
Attachments: TestCase.java.diff
Some tests opens transactions and do not properly close them, causing some RDBMS's to
hang indefinitely, waiting for the transaction to be closed before dropping the entities
used in the test.
To encourage the closing of these open transaction, the following patch makes the test to
fail if the transaction is not finished. Also, the test rolls back the transaction, to
release the transaction in the database, enabling it to drop all entities used by the
test.
Also, a warning was also added to the parent test case for the project, informing when a
test case is not closing the EM.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: