db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Knut Anders Hatlen (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DERBY-5683) BaseJDBCTestCase.getDatabaseProperty() should close resources before returning
Date Mon, 02 Apr 2012 18:51:23 GMT
BaseJDBCTestCase.getDatabaseProperty() should close resources before returning

                 Key: DERBY-5683
                 URL: https://issues.apache.org/jira/browse/DERBY-5683
             Project: Derby
          Issue Type: Improvement
          Components: Test
    Affects Versions:
            Reporter: Knut Anders Hatlen
            Assignee: Knut Anders Hatlen
            Priority: Minor

BaseJDBCTestCase.getDatabaseProperty() creates a PreparedStatement and a ResultSet that are
not closed before the method returns. If a test case calls getDatabaseProperty() many times,
the open statements may have a big memory footprint.

This can be seen for example by running jdbcapi.AuthenticationTest with -Xmx64. It will fail
with an OutOfMemoryError when testNoCollisionsWithConfigurableHash() runs in client/server

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message