[
https://issues.apache.org/jira/browse/NIFI-7231?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17053504#comment-17053504
]
Mark Bean commented on NIFI-7231:
---------------------------------
Proposed fix: remove the validation of references from the state transition to
ENABLED. Reference validation is not a requirement for the current controller
service to be enabled. And, this should not take place within the synchronized
block. Doing so creates the blocking issue. Perform reference validation
immediately after the state is transitioned to ENABLED and outside of the
synchronized block.
> NiFi fails to start due to blocking controller service validation
> -----------------------------------------------------------------
>
> Key: NIFI-7231
> URL: https://issues.apache.org/jira/browse/NIFI-7231
> Project: Apache NiFi
> Issue Type: Bug
> Components: Core Framework
> Affects Versions: 1.10.0
> Reporter: Mark Bean
> Assignee: Mark Bean
> Priority: Major
>
> NiFi will not enable all controller services during startup when there are
> additional referenced controller services within a controller service.
> Specifically, this was observed when the referenced controller services were
> dynamic properties.
> The enabling process correctly enables referenced services first. However,
> during the enabling process, all referencing components are validated. This
> creates a situation where the parent controller service is repeatedly
> validated for every child controller service. And, part of the validation of
> the parent is to validate the child. The circular validation will eventually
> block; controller services are not properly enabled; NiFi does not complete
> the startup process.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)