[ 
https://issues.apache.org/jira/browse/NIFI-15012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18022847#comment-18022847
 ] 

ASF subversion and git services commented on NIFI-15012:
--------------------------------------------------------

Commit 60330769f668abf963f8a32202841cafa10f1885 in nifi's branch 
refs/heads/main from Pierre Villard
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=60330769f6 ]

NIFI-15012 - FlowDifferenceFilters - fix handling of createControllerService() 
(#10342)

Signed-off-by: Pierre Villard <[email protected]>

> 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
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> 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)

Reply via email to