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/19 09:08:00 UTC
[jira] [Resolved] (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 resolved HDDS-5858.
------------------------------------
Fix Version/s: 1.3.0
Resolution: Fixed
> Resource Leak due to Files.list
> -------------------------------
>
> Key: HDDS-5858
> URL: https://issues.apache.org/jira/browse/HDDS-5858
> Project: Apache Ozone
> Issue Type: Bug
> Reporter: lujie
> Assignee: lujie
> Priority: Minor
> Labels: pull-request-available
> Fix For: 1.3.0
>
>
> 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