[
https://issues.apache.org/jira/browse/STORM-3800?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Richard Zowalla closed STORM-3800.
----------------------------------
Fix Version/s: 2.6.0
Assignee: (was: Bipin Prasad)
Resolution: Fixed
> Fix Resocue leak due to Files.list and Files.walk
> -------------------------------------------------
>
> Key: STORM-3800
> URL: https://issues.apache.org/jira/browse/STORM-3800
> Project: Apache Storm
> Issue Type: Improvement
> Reporter: lujie
> Priority: Major
> Fix For: 2.6.0
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> Files.list and Files.walk will open dir stream, we should close it.
>
> see jdk:
> the {[@code|https://github.com/code] 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.20.10#820010)