[
https://issues.apache.org/jira/browse/NIFI-15296?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18043256#comment-18043256
]
ASF subversion and git services commented on NIFI-15296:
--------------------------------------------------------
Commit 3c0c64619bb29e06516308491331ba4e9c20caae in nifi's branch
refs/heads/main from David Handermann
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=3c0c64619b ]
NIFI-15296 Fixed enabling Controller Services with dependencies
- Filtered list of required Controller Services based on whether the property
descriptor has satisfied dependencies to avoid enabling unnecessary referenced
Controller Services
- Added unit test with Primary Controller Service referencing Secondary
Controller Service depending on specified properties
Signed-off-by: Pierre Villard <[email protected]>
This closes #10603.
> Referenced Controller Services with Unsatisfied Dependencies should not be
> Enabled
> ----------------------------------------------------------------------------------
>
> Key: NIFI-15296
> URL: https://issues.apache.org/jira/browse/NIFI-15296
> Project: Apache NiFi
> Issue Type: Bug
> Components: Core Framework
> Affects Versions: 2.0.0, 2.7.0
> Reporter: David Handermann
> Assignee: David Handermann
> Priority: Major
> Time Spent: 20m
> Remaining Estimate: 0h
>
> The framework {{ControllerServiceNode}} interface includes the
> {{getRequiredControllerServices}} method, which is responsible for returning
> a flattened list of Controller Services that must be enabled before the
> current Controller Service can be enabled. At the time of initial
> implementation, the framework did not support the concept of dependent
> properties, so the standard implementation returns every
> {{ControllerServiceNode}} configured through a property values. With the
> introduction of dependent properties, however, it is possible for one
> Controller Service to be configured with a property referencing another
> Controller Service that is not needed for actual operation.
> Following the strategy of framework handling for other dependent property
> values, referenced Controller Services with unsatisfied dependencies should
> not be included in the list of required Controller Services. With correct
> filtering, such Controller Services should not be enabled as part of enabling
> the primary Controller Service in which they are referenced.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)