Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-11332

Stream from Files.readLines needs to be closed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.20.0
    • 2.0.0-M1, 1.21.0
    • None
    • None

    Description

      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:

      * 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 

      Attachments

        Issue Links

          Activity

            People

              bbende Bryan Bende
              bbende Bryan Bende
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m