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

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

Commit 1be32d6992acf40bc63f69a57cf8b72eedc42cd7 in nifi's branch 
refs/heads/main from Mark Payne
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=1be32d6992 ]

NIFI-14654 Fixed Stateless Process Group session lifecycle handling (#10014)

Ensure when a Stateless Process Group is stopped that we properly call all 
success and/or failure session callbacks before stopping the Processor. In 
order to make system tests to verify this more straight-forward, also exposed 
the CounterRepository such that system tests can obtain counter values to 
ensure that methods are called appropriately.

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

> When Stateless group is stopped, processors may be stopped before session 
> commit callbacks are called
> -----------------------------------------------------------------------------------------------------
>
>                 Key: NIFI-14654
>                 URL: https://issues.apache.org/jira/browse/NIFI-14654
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>            Reporter: Mark Payne
>            Assignee: Mark Payne
>            Priority: Major
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> If a Processor commits a session using {{ProcessSession.commitAsync(Runnable, 
> Consumer<Throwable>)}} but the Stateless Process Group is stopped, sometimes 
> the Processor's @OnStopped method is called before the Runnable or 
> Consumer<Throwable> is called. This can cause the @OnStopped method to behave 
> incorrectly, effectively running while the Processor is still being triggered.



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

Reply via email to