[
https://issues.apache.org/jira/browse/NIFI-15012?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Pierre Villard updated NIFI-15012:
----------------------------------
Status: Patch Available (was: Open)
> FlowDifferenceFilters - fix handling of createControllerService()
> -----------------------------------------------------------------
>
> Key: NIFI-15012
> URL: https://issues.apache.org/jira/browse/NIFI-15012
> Project: Apache NiFi
> Issue Type: Improvement
> Reporter: Pierre Villard
> Assignee: Pierre Villard
> Priority: Major
>
> In NIFI-14995, we tried to properly handle the case where a property is added
> to hold a newly created controller service but the logic was not correct in
> terms of how migrateProperties is called and the sequence of objects creation.
> We only looked up the new property through the live ComponentNode to confirm
> it identified a controller service. In the real migration sequence, the
> property is added to the versioned component before there’s a live node (the
> component is a freshly imported controller service), so getComponent(...)
> returned null, the property was ignored, and the context never saw the
> controller-service ID. Without that linkage, the corresponding
> COMPONENT_ADDED diff wasn’t marked as environmental, leaving both the
> property addition and the service creation visible as local changes.
> We are improving the logic to properly handle this scenario.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)