[ 
https://issues.apache.org/jira/browse/NIFI-13755?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jim Steinebrey updated NIFI-13755:
----------------------------------
    Description: 
Before Nifi was stopped, there were around 1000 controller services (cs) 
enabled and 500 disabled. After NiFi restarted, 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.

  was:
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.


> 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: 1.27.0, 2.0.0-M4
>            Reporter: Jim Steinebrey
>            Assignee: Jim Steinebrey
>            Priority: Major
>
> Before Nifi was stopped, there were around 1000 controller services (cs) 
> enabled and 500 disabled. After NiFi restarted, 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)

Reply via email to