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

Wait timestamp lingers, potentially messing up downstream wait-notify pairs

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.9.0
    • None
    • Patch

    Description

      The Wait processor makes use of the attribute "wait.start.timestamp" to keep track of when it first encountered a flowfile. The observed behaviour is that this attribute is set only if it does not exist, if else it is just checked against the current time. With several wait-notify pairs in succession, there is a likelihood that a flowfile will be routed directly to "expired" in one of the downstream Wait processors due to a timestamp set upstream of it. I suggest allowing an option of deleting the timestamp once a file is routed to success (and perhaps also to expired). Currently I do this manually with an UpdateAttribute processor.

       

      Attached is a template with necessary components and also an explanation of how to reproduce the issue.

      Attachments

        1. TestLingeringWaitTimestamps.xml
          55 kB
          Lars Birger Aasheim

        Issue Links

          Activity

            People

              otto Otto Fowler
              laashe Lars Birger Aasheim
              Votes:
              0 Vote for this issue
              Watchers:
              5 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