You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@phoenix.apache.org by "Istvan Toth (Jira)" <ji...@apache.org> on 2023/11/02 08:43:00 UTC

[jira] [Commented] (PHOENIX-7093) PhoenixConnection doesn't close its Statements on close()

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

Istvan Toth commented on PHOENIX-7093:
--------------------------------------

It looks like the original intent was to work around a ConcurrentModificationException, only the execution failed.

> PhoenixConnection doesn't close its Statements on close()
> ---------------------------------------------------------
>
>                 Key: PHOENIX-7093
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-7093
>             Project: Phoenix
>          Issue Type: Bug
>            Reporter: Istvan Toth
>            Priority: Major
>
> When a PhoenixConnection is closed, its child Statements are never closed.
> This also means the ResultSets are never closed properly.
> Any open network connections eventually time out, and the objects get GCd, but this is still iffy.
> It also kills any chance to get usable trace spans, as the spans are generally marked done in close().



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