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

Fix Race condition during initialization of ControllerServices

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.3.0
    • 0.5.0
    • Core Framework
    • None

    Description

      Similar to NIFI-1143, but the exception is happening in the different place

      testConcurrencyWithEnablingReferencingServicesGraph(org.apache.nifi.controller.service.TestStandardControllerServiceProvider)  Time elapsed: 0.162 sec  <<< ERROR!
      java.lang.IllegalStateException: ServiceB[id=4] cannot be enabled because it is not disabled
      at org.apache.nifi.controller.service.StandardControllerServiceNode.verifyCanEnable(StandardControllerServiceNode.java:183)
      at org.apache.nifi.controller.service.StandardControllerServiceProvider.enableReferencingServices(StandardControllerServiceProvider.java:549)
      at org.apache.nifi.controller.service.StandardControllerServiceProvider.enableReferencingServices(StandardControllerServiceProvider.java:544)
      at org.apache.nifi.controller.service.TestStandardControllerServiceProvider.testEnableReferencingServicesGraph(TestStandardControllerServiceProvider.java:154)
      at org.apache.nifi.controller.service.TestStandardControllerServiceProvider.testConcurrencyWithEnablingReferencingServicesGraph(TestStandardControllerServiceProvider.java:124)
      

      Attachments

        Issue Links

          Activity

            People

              ozhurakousky Oleg Zhurakousky
              ozhurakousky Oleg Zhurakousky
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: