You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Brenda Finn (JIRA)" <ji...@apache.org> on 2014/07/11 17:12:06 UTC
[jira] [Created] (AMQ-5275) ResultSet needs to be released
Brenda Finn created AMQ-5275:
--------------------------------
Summary: ResultSet needs to be released
Key: AMQ-5275
URL: https://issues.apache.org/jira/browse/AMQ-5275
Project: ActiveMQ
Issue Type: Bug
Components: Broker
Affects Versions: 5.9.0
Environment: Solaris 5.10
Reporter: Brenda Finn
Priority: Minor
As part of code analysis using pmd and checkstyle tools, it was reported that the ResultSet is not closed in the following file
org.apache.activemq.store.jdbc.adapter.TransactDatabaseLocker
Method: doStart():
ResultSet is created on line #51 but is never released. It appears as if it is used as a locking mechanism so likely there is not a lot of data that needs to be closed, but for best practices, it should be closed to free up any external resources.
org.apache.activemq.store.jdbc.LeaseDatabaseLocker
Method: reportLeasOwnerShipAndDuration()
ResultSet is created on line #105 but is never released.
--
This message was sent by Atlassian JIRA
(v6.2#6252)