[
https://issues.apache.org/jira/browse/NIFI-9352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17436329#comment-17436329
]
ASF subversion and git services commented on NIFI-9352:
-------------------------------------------------------
Commit 09feed9df6002e3687e52d109c3dca351e945247 in nifi's branch
refs/heads/main from Mark Payne
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=09feed9 ]
NIFI-9352: Consider all property values in component references
- Ensure that we consider all property values to determine if a component
references a variable, not just 'supported' (i.e., well-known/non-user-defined)
properties
This closes #5499
Signed-off-by: David Handermann <[email protected]>
> Components that reference variable in user-defined property are not
> stopped/restarted when variable is updated
> --------------------------------------------------------------------------------------------------------------
>
> Key: NIFI-9352
> URL: https://issues.apache.org/jira/browse/NIFI-9352
> Project: Apache NiFi
> Issue Type: Bug
> Components: Core Framework
> Affects Versions: 1.15.0
> Reporter: Mark Payne
> Assignee: Mark Payne
> Priority: Blocker
> Fix For: 1.15.0
>
> Time Spent: 1h
> Remaining Estimate: 0h
>
> When a Process Group's variable is updated, any component that references
> that variable must first be stopped and then restarted. However, if a
> processor references the variable in a user-defined property, it does not get
> stopped & restarted.
> To illustrate:
> - Create a GenerateFlowFile processor
> - Add a user-defined property if "Hello" with a value of "${greeting}"
> - Create a variable named "greeting" in the Process Group and give it any
> value - say "hello".
> - Connect GenerateFlowFile to an UpdateAttribute and set the Run Schedule to
> "1 hour".
> - Start GenerateFlowFile. It should run once.
> - Update variable to have a value of "good-bye".
> - After changes have been applied, you should have seen GenerateFlowFile run
> twice - once with a value of "hello" and again with a value of "good-bye" but
> currently you'll see it have only run once.
> As a result, when a variable is change, it may not take effect on all
> processors until restart of NiFi.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)