[hibernate-issues] [Hibernate-JIRA] Created: (HHH-6223) connection leak in entitymanager and annotation's testsuite

Strong Liu (JIRA) noreply at atlassian.com
Mon May 16 02:38:25 EDT 2011


connection leak in entitymanager and annotation's testsuite
-----------------------------------------------------------

                 Key: HHH-6223
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-6223
             Project: Hibernate Core
          Issue Type: Bug
          Components: annotations, entity-manager
    Affects Versions: 3.6.4
            Reporter: Strong Liu
            Priority: Minor
             Fix For: 3.6.5


lots of entitymanager's tests fail due to can't get connection, and i found org.hibernate.testing.junit.functional.annotations.HibernateTestCase#closeResources is only be called when a test throws exception...
thus, for each succeeded test, the session factory will not be closed when it is finished.
and due to after each test finishes, we use SchemaExport, which opens a new connection, to drop tables, so this connection will be left open

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