[ 
https://issues.apache.org/jira/browse/NIFI-10815?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17634510#comment-17634510
 ] 

ASF subversion and git services commented on NIFI-10815:
--------------------------------------------------------

Commit 25b6e2c9cd078c55d7d201a34d5e38f3d0300872 in nifi's branch 
refs/heads/main from Paul Grey
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=25b6e2c9cd ]

NIFI-10815 Fixed initial internal yield duration when processor created

This closes #6664

Signed-off-by: David Handermann <[email protected]>


> Processor configuration issue (@TriggerWhenEmpty / Default Yield Duration)
> --------------------------------------------------------------------------
>
>                 Key: NIFI-10815
>                 URL: https://issues.apache.org/jira/browse/NIFI-10815
>             Project: Apache NiFi
>          Issue Type: Bug
>            Reporter: Paul Grey
>            Assignee: Paul Grey
>            Priority: Major
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> While testing a custom processor with the annotation `TriggerWhenEmpty`, 
> noted an issue with the scheduling of the processor.
> The processor setting `Yield Duration` defaults in the UI to `1 sec`.  The 
> expectation of the `onTrigger()` method is that, if the API 
> `ProcessContext.yield()` is called, the processor should not be scheduled for 
> the amount of time specified in Yield Duration.  
> On adding the custom processor to the canvas and starting it, the processor 
> is scheduled continuously.  When the processor is stopped and Yield Duration 
> is edited, starting the processor results in Yield Duration being honored.  
> Reverting the edit (to set Yield Duration to the default) is also honored.
> It is as if the default Yield Duration setting is ignored when the setting 
> has never been set.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to