You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Attila Doroszlai (Jira)" <ji...@apache.org> on 2021/10/18 12:31:00 UTC

[jira] [Assigned] (HDDS-5858) Resource Leak due to Files.list

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

Attila Doroszlai reassigned HDDS-5858:
--------------------------------------

    Assignee: lujie

> Resource Leak due to Files.list
> -------------------------------
>
>                 Key: HDDS-5858
>                 URL: https://issues.apache.org/jira/browse/HDDS-5858
>             Project: Apache Ozone
>          Issue Type: Improvement
>            Reporter: lujie
>            Assignee: lujie
>            Priority: Major
>
> Files.list will open dir stream, we should close it.
>  
> see jdk: the
>  \{try} -with-resources construct should be used to ensure that the
> stream's
> {[@link|https://github.com/link] Stream#close close}
> method is invoked after the stream
> operations are completed.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org