[
https://issues.apache.org/jira/browse/NIFI-11332?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
David Handermann updated NIFI-11332:
------------------------------------
Fix Version/s: 2.0.0
1.21.0
Resolution: Fixed
Status: Resolved (was: Patch Available)
> 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
> Fix For: 2.0.0, 1.21.0
>
> 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)