[
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: [email protected]
For additional commands, e-mail: [email protected]