You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "Viraj Jasani (Jira)" <ji...@apache.org> on 2020/01/24 19:17:00 UTC

[jira] [Updated] (PHOENIX-5697) Avoid resource leakage with try-with-resources

     [ https://issues.apache.org/jira/browse/PHOENIX-5697?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Viraj Jasani updated PHOENIX-5697:
----------------------------------
    Labels: phoenix-hardening  (was: )

> Avoid resource leakage with try-with-resources
> ----------------------------------------------
>
>                 Key: PHOENIX-5697
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-5697
>             Project: Phoenix
>          Issue Type: Improvement
>    Affects Versions: 5.1.0, 4.15.1
>            Reporter: Viraj Jasani
>            Assignee: Viraj Jasani
>            Priority: Major
>              Labels: phoenix-hardening
>         Attachments: PHOENIX-5697.master.000.patch
>
>
> There are places where we catch IOException in finally block while closing a closable resource. If we could use try-with-resources to deal with closure of resources, that would not let us worry about catching IOException while closing the resources and would be a better replacement.



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