[hibernate-issues] [Hibernate-JIRA] Created: (EJB-406) Unclosed sessions/transaction

Juraci Paixao Krohling (JIRA) noreply at atlassian.com
Wed Dec 10 06:53:38 EST 2008


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: 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