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

ProcessSession may leave open references to files in content repo until committed/rolled back

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.14.0
    • Component/s: Core Framework
    • Labels:
      None

      Description

      The ProcessSession class offers several API calls that make it possible to write to the contents of a FlowFile. One of those is:

      OutputStream write(FlowFile source); 

      When this is called, the session returns an OutputStream that the caller is responsible for closing. However, when the OutputStream is closed, the underlying stream to the content repository is neither closed nor made available for reuse. As a result, if this is used to write to many FlowFiles, those FlowFiles can each be written to a separate file on disk as well as be left open until the session is committed or rolled back.

        Attachments

          Activity

            People

            • Assignee:
              markap14 Mark Payne
              Reporter:
              markap14 Mark Payne

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

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

                  Issue deployment