[ 
https://issues.apache.org/jira/browse/NIFI-14690?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Pierre Villard resolved NIFI-14690.
-----------------------------------
    Fix Version/s: 2.5.0
       Resolution: Fixed

> When running a Stateless flow, ensure that we can call Processors' @OnStopped 
> methods after terminating flow
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: NIFI-14690
>                 URL: https://issues.apache.org/jira/browse/NIFI-14690
>             Project: Apache NiFi
>          Issue Type: Bug
>            Reporter: Mark Payne
>            Assignee: Mark Payne
>            Priority: Major
>             Fix For: 2.5.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> When we stop a stateless flow, we have a situation in which we stop all 
> instances. However, they currently share the same LifecycleState object, 
> which means that after the first instance terminates processors, all 
> subsequent instances fail to call the Processors' @OnStopped methods, 
> throwing a TerminatedTaskException when attempting to increment the active 
> thread count. This is not obvious in the UI but shows in the logs, and it 
> results in not properly handling the closing of resources.



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

Reply via email to