Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-13755

Controller Services sometimes not restarted when NiFi is restarted

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.27.0, 2.0.0-M4
    • 1.28.0, 2.0.0
    • Core Framework
    • None

    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.

      Attachments

        Issue Links

          Activity

            People

              jrsteinebrey Jim Steinebrey
              jrsteinebrey Jim Steinebrey
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h
                  2h