[ https://issues.apache.org/jira/browse/CASSANDRA-17041?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
lujie updated CASSANDRA-17041: ------------------------------ Resolution: Fixed Status: Resolved (was: Triage Needed) bug is fixed now > 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 > Time Spent: 20m > Remaining Estimate: 0h > > 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