You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "lujie (Jira)" <ji...@apache.org> on 2021/10/14 06:08:00 UTC
[jira] [Updated] (CASSANDRA-17041) Fix resource leak due to
Files.list
[ 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-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org