You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "lujie (Jira)" <ji...@apache.org> on 2021/10/15 06:29:00 UTC
[jira] [Updated] (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 ]
lujie updated HDDS-5858:
------------------------
Description:
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.
> 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
> 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