You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@storm.apache.org by "lujie (Jira)" <ji...@apache.org> on 2021/10/14 09:57:00 UTC

[jira] [Created] (STORM-3800) Fix Resocue leak due to Files.list and Files.walk

lujie created STORM-3800:
----------------------------

             Summary: 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


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.3.4#803005)