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

Istvan Toth commented on PHOENIX-7088:
--------------------------------------

It also maintains a resultSets list, but PhoenixStatement never returns more 
than one resultSet, so it's not necessary.

> PhoenixStatement leaks ResultSets
> ---------------------------------
>
>                 Key: PHOENIX-7088
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-7088
>             Project: Phoenix
>          Issue Type: New Feature
>          Components: core
>    Affects Versions: 5.2.0, 5.1.3
>            Reporter: Istvan Toth
>            Assignee: Istvan Toth
>            Priority: Major
>
> When a Statement is re-used for multiple queries, the ResultSets never get 
> closed.
> As per [https://docs.oracle.com/javase/8/docs/api/java/sql/ResultSet.html]
> {quote}A {{ResultSet}} object is automatically closed when the {{Statement}} 
> object that generated it is closed, re-executed, or used to retrieve the next 
> result from a sequence of multiple results.
> {quote}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to