Jim Steinebrey created NIFI-13755:
-------------------------------------
Summary: Controller Services sometimes not restarted when NiFi is
restarted
Key: NIFI-13755
URL: https://issues.apache.org/jira/browse/NIFI-13755
Project: Apache NiFi
Issue Type: Improvement
Components: Core Framework
Affects Versions: 2.0.0-M4, 1.27.0
Reporter: Jim Steinebrey
Assignee: Jim Steinebrey
Before Nifi was stopped, there were around 1000 controller services (cs)
enabled and 500 disabled. After NiFi restarted and none of the controller
services were enabled. This is very inconvenient because now someone has to
manually restart just the 1000 that should be enabled. The normal NiFi restart
behavior is to enable the 1000 cs and leave the 500 disabled to restore them to
their state before the restart.
I found the cause in
StandardControllerServiceProvider.enableControllerServices()
If a single enabled cs depends on another cs which is disabled, then NONE of
the 1000 cs are enabled.
My change is to only SKIP the enabling of any cs which is dependent on any
disabled cs ancestor (cs can be linked multiple levels deep) and proceed to
enable any cs which is not dependent on a disabled cs ancestor.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)