[ https://issues.apache.org/jira/browse/YARN-10976?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shilun Fan updated YARN-10976: ------------------------------ Component/s: nodemanager Hadoop Flags: Reviewed Target Version/s: 3.3.2, 3.4.0 Affects Version/s: 3.3.2 3.4.0 > Fix resource leak due to Files.walk > ----------------------------------- > > Key: YARN-10976 > URL: https://issues.apache.org/jira/browse/YARN-10976 > Project: Hadoop YARN > Issue Type: Bug > Components: nodemanager > Affects Versions: 3.4.0, 3.3.2 > Reporter: lujie > Assignee: lujie > Priority: Minor > Labels: pull-request-available > Fix For: 3.4.0, 3.3.2 > > Time Spent: 0.5h > Remaining Estimate: 0h > > Stream creates by File.walk should be closed, like jdk said: > * <p> The returned stream encapsulates one or more \{@link DirectoryStream}s. > * If timely disposal of file system resources is required, the > * {@code try}-with-resources construct should be used to ensure that the > * stream's \{@link Stream#close close} method is invoked after the stream > * operations are completed. Operating on a closed stream will result in an > * {@link java.lang.IllegalStateException}. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org