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)

Reply via email to