[ 
https://issues.apache.org/jira/browse/NIFI-11332?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17704333#comment-17704333
 ] 

ASF subversion and git services commented on NIFI-11332:
--------------------------------------------------------

Commit 53860950839cb0cb0a2b3bbe10e09eeb459f4702 in nifi's branch 
refs/heads/main from Bryan Bende
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=5386095083 ]

NIFI-11332 Close Stream from Files.lines in StandardRuntimeManifestService

This closes #7079

Signed-off-by: David Handermann <[email protected]>


> Stream from Files.readLines needs to be closed
> ----------------------------------------------
>
>                 Key: NIFI-11332
>                 URL: https://issues.apache.org/jira/browse/NIFI-11332
>             Project: Apache NiFi
>          Issue Type: Bug
>    Affects Versions: 1.20.0
>            Reporter: Bryan Bende
>            Assignee: Bryan Bende
>            Priority: Major
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> [https://github.com/apache/nifi/blob/main/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/manifest/StandardRuntimeManifestService.java#L154]
> The javadoc for this method says:
> {code:java}
> * This method must be used within a try-with-resources statement or similar
>      * control structure to ensure that the stream's open file is closed 
> promptly
>      * after the stream's operations have completed {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to