[ 
https://issues.apache.org/jira/browse/AMQ-7403?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17057045#comment-17057045
 ] 

Jean-Baptiste Onofré edited comment on AMQ-7403 at 3/11/20, 2:26 PM:
---------------------------------------------------------------------

This change breaks {{LeaseDatabaseLockerTest}} unit test. The test has be 
fixed, simply adding prepare statement close reply on mock.


was (Author: jbonofre):
This change breaks {{LeaseDatabaseLockerTest}} unit test. The test has be fixed.

> Potential PreparedStatement/ResultSet leak in 
> LeaseDatabaseLocker#determineTimeDifference
> -----------------------------------------------------------------------------------------
>
>                 Key: AMQ-7403
>                 URL: https://issues.apache.org/jira/browse/AMQ-7403
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: JDBC
>    Affects Versions: 5.15.11
>            Reporter: Pascal Schumacher
>            Assignee: Jean-Baptiste Onofré
>            Priority: Minor
>             Fix For: 5.16.0, 5.15.12
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> LeaseDatabaseLocker#determineTimeDifference does not close the 
> PreparedStatement and the ResultSet it uses/creates.
> This may cause a resource leak.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to