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

lujie updated CASSANDRA-17041:
------------------------------
    Description: 
Files.list will opend dir and we should close it.

 

see jdk:

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.

 

 

  was:Files.list


> Fix resource leak due to Files.list
> -----------------------------------
>
>                 Key: CASSANDRA-17041
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-17041
>             Project: Cassandra
>          Issue Type: Improvement
>            Reporter: lujie
>            Priority: Normal
>
> Files.list will opend dir and we should close it.
>  
> see jdk:
> 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.
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to