[
https://issues.apache.org/jira/browse/NIFI-6153?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Pierre Villard resolved NIFI-6153.
----------------------------------
Resolution: Feedback Received
Apache NiFi 1.x is no longer maintained and no new release is planned on the
1.x release line. Marking as resolved as part of a cleanup operation. Please
open a new one with an updated description if this is still relevant for NiFi
2.x.
> [Wait/Notify] Wait processor doesn't release a file
> ---------------------------------------------------
>
> Key: NIFI-6153
> URL: https://issues.apache.org/jira/browse/NIFI-6153
> Project: Apache NiFi
> Issue Type: Bug
> Components: Core Framework
> Affects Versions: 1.8.0, 1.9.1
> Reporter: Artem Anokhin
> Priority: Major
> Labels: flow, notify, processor, synchronization, wait
> Attachments: image-2019-03-27-13-26-08-354.png
>
>
> TC:
> 1) Flow
> !image-2019-03-27-13-26-08-354.png!
> 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:
> {code:java}
> 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)
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)