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

If 0-byte FlowFiles are load balanced, can result in content claim not being cleaned up

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • 1.9.0
    • Core Framework
    • None

    Description

      To replicate, create two separate Flows:

      GenerateFlowFile (File Size 800 KB) -> UpdateAttribute [auto-terminate]

      GenerateFlowFile (FileSize 0 B) -> UpdateAttribute [auto-terminate]

      On the second one, that is generating 0-byte flowfiles, configure the Connection to Load Balance (Round Robin is easiest).

      Start both flows.

      After a minute or two, stop the GenerateFlowFile processors; let the flowfiles finish being processed by UpdateAttribute.

      Now, wait for the FlowFile Repository to checkpoint. At this point, the content claim should be cleaned up and delete/archive any content claims (with the exception of a few claims that are still 'writable'). However, some claims are still sticking around when they shouldn't.

      Attachments

        Issue Links

          Activity

            People

              markap14 Mark Payne
              markap14 Mark Payne
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: