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

[Wait/Notify] Wait processor doesn't release a file

    XMLWordPrintableJSON

Details

    Description

      TC:

      1) Flow

      2) Wait Processor Properties:

      Release Signal Identifier: signal_${filename}

      Target Signal Count: 0

      Distributed Cache Service: RedisDistributedMapCacheClientService

      Wait Mode: Keep in the upstream connection

      3) Notify Processor Properties:

      Release Signal Identifier: signal_${filename}

      Distributed Cache Service: RedisDistributedMapCacheClientService

      ER:
      Flow file would be released if the expected count is 0.

      AR:

      • Without Notify processor a flowFile doesn't release.
      • With Notify processor occurs the next exception:
      o.a.n.controller.tasks.ConnectableTask Administratively Yielding Wait[id=bea7821d-0169-1000-5107-59ea62350cd2] due to uncaught Exception: java.lang.ArithmeticException: / by zero
      java.lang.ArithmeticException: / by zero
      at org.apache.nifi.processors.standard.WaitNotifyProtocol$Signal.releaseCandidates(WaitNotifyProtocol.java:145)
      at org.apache.nifi.processors.standard.Wait.onTrigger(Wait.java:449)
      at org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27)
      at org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1162)
      at org.apache.nifi.controller.tasks.ConnectableTask.invoke(ConnectableTask.java:205)
      at org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:117)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      at java.lang.Thread.run(Thread.java:748)
      

      Attachments

        1. image-2019-03-27-13-26-08-354.png
          214 kB
          Artem Anokhin

        Activity

          People

            Unassigned Unassigned
            JFeoks Artem Anokhin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: