You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@samza.apache.org by "lujie (Jira)" <ji...@apache.org> on 2021/10/15 05:14:00 UTC
[jira] [Created] (SAMZA-2702) Resouce Leak due to Files.lines and
Files.list
lujie created SAMZA-2702:
----------------------------
Summary: Resouce Leak due to Files.lines and Files.list
Key: SAMZA-2702
URL: https://issues.apache.org/jira/browse/SAMZA-2702
Project: Samza
Issue Type: Improvement
Reporter: lujie
Files.list and Files.lines will open stream, we should close it.
see jdk: the
\{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.3.4#803005)