[
https://issues.apache.org/jira/browse/NIFI-7123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17034740#comment-17034740
]
Nissim Shiman commented on NIFI-7123:
-------------------------------------
If this is considered an issue, it won't be big deal to fix (i.e. minimal
touching of core code)
It will just need the following around the onPropertyModified() [1] :
if (!(descriptor.getDefaultValue().equals(effectiveValue) && oldValue ==
null)) {}
[1]https://github.com/apache/nifi/blob/master/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core-api/src/main/java/org/apache/nifi/controller/AbstractComponentNode.java#L366
> onPropertyModified() is called on nifi start up even when properties have
> never been modified
> ---------------------------------------------------------------------------------------------
>
> Key: NIFI-7123
> URL: https://issues.apache.org/jira/browse/NIFI-7123
> Project: Apache NiFi
> Issue Type: Bug
> Affects Versions: 1.11.0
> Reporter: Nissim Shiman
> Assignee: Nissim Shiman
> Priority: Major
>
> Processors and Controller Services inherit the onPropertyModified() method
> from ConfigurableComponent. java [1]
> This method is called when nifi starts for all processors and controller
> services, even for properties that are set to their defaults (i.e. have never
> been modified).
> [1]
> https://github.com/apache/nifi/blob/master/nifi-api/src/main/java/org/apache/nifi/components/ConfigurableComponent.java#L68
--
This message was sent by Atlassian Jira
(v8.3.4#803005)