[
https://issues.apache.org/jira/browse/NIFI-14434?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
David Handermann resolved NIFI-14434.
-------------------------------------
Fix Version/s: 2.5.0
Assignee: Mark Payne
Resolution: Fixed
> Components' @OnRemoved methods are called any time the component is reloaded
> ----------------------------------------------------------------------------
>
> Key: NIFI-14434
> URL: https://issues.apache.org/jira/browse/NIFI-14434
> Project: Apache NiFi
> Issue Type: Bug
> Components: Core Framework
> Reporter: Mark Payne
> Assignee: Mark Payne
> Priority: Major
> Fix For: 2.5.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> Any time that the StandardReloadComponent is called to reload a component,
> such as a Processor, it calls any method annotated with {{{}@OnRemoved{}}}.
> This should be reserved only for when the component is removed from the
> canvas, not when it's reloaded. The reload happens any time that the version
> of the component is changed or potentially when the flow is reloaded, etc.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)