You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Bryan Bende (Jira)" <ji...@apache.org> on 2023/03/23 17:09:00 UTC

[jira] [Updated] (NIFI-11332) Stream from Files.readLines needs to be closed

     [ https://issues.apache.org/jira/browse/NIFI-11332?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bryan Bende updated NIFI-11332:
-------------------------------
    Status: Patch Available  (was: In Progress)

> 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: 10m
>  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)