[
https://issues.apache.org/jira/browse/NIFI-15008?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18022394#comment-18022394
]
ASF subversion and git services commented on NIFI-15008:
--------------------------------------------------------
Commit 423381d4c53e5765d9a92bebf72804f36294bfa7 in nifi's branch
refs/heads/main from Bryan Bende
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=423381d4c5 ]
NIFI-15008 Allow affected components to be reloaded if necessary during
parameter context update
Signed-off-by: Pierre Villard <[email protected]>
This closes #10338.
> Parameter change not taking affect in stopped/disabled component
> ----------------------------------------------------------------
>
> Key: NIFI-15008
> URL: https://issues.apache.org/jira/browse/NIFI-15008
> Project: Apache NiFi
> Issue Type: Bug
> Affects Versions: 2.6.0
> Reporter: Bryan Bende
> Assignee: Bryan Bende
> Priority: Minor
> Time Spent: 20m
> Remaining Estimate: 0h
>
> When modifying a parameter context we calculate all the affected components,
> and for any that are running/enabled, we stop/disable them, then apply the
> context updates, and then restart/re-enable those components.
> Part of starting/enable is to call reload on the component so it can realize
> any changes to the classpath that may have occurred through property changes
> (could be indirect through param value changes).
> The problem is for a component that is affected, but stopped/disabled, they
> won't be reloaded. If you went to configure one of these components and
> performed Verification, the classpath of the component will be stale from the
> before the parameter was modified.
> Concrete example:
> * Create param context "Test" with param `DB_DRIVER` with no value
> * Create process group "Test" using this param context
> * Create a DBCPConnectionPool filling in postgres url, postgres driver
> class, and driver location as #\{DB_DRIVER}
> * Click verify and it should say it can't find the driver
> * Go back to parameter context and edit DB_DRIVER to point to the postgres
> driver jar
> * Go back to the service and perform verify, it will get the same error even
> though the driver is now available
--
This message was sent by Atlassian Jira
(v8.20.10#820010)