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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • 1.14.0
    • Core Framework
    • 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

        Issue Links

          Activity

            People

              markap14 Mark Payne
              markap14 Mark Payne
              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 - 1h
                  1h