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)