You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@storm.apache.org by "Bipin Prasad (Jira)" <ji...@apache.org> on 2022/04/25 17:17:00 UTC

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

     [ https://issues.apache.org/jira/browse/STORM-3800?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bipin Prasad reassigned STORM-3800:
-----------------------------------

    Assignee: Bipin Prasad

> 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
>            Assignee: Bipin Prasad
>            Priority: Major
>          Time Spent: 10m
>  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.7#820007)