[ 
https://issues.apache.org/jira/browse/NIFI-1164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15007054#comment-15007054
 ] 

Oleg Zhurakousky commented on NIFI-1164:
----------------------------------------

While patch is submitted it does not really provide a fix. Rather decreases the 
chances for this bug to manifest itself the way it did before. At the core if 
the issue in both NIFI-1143 and this one is the fact that the service state 
checks are somewhat pointless since the actual service state may (and does in 
this case) change rendering the next action invalid. 

Will raise another JIRA for 0.5+ to fix it properly

> Race condition during initialization of ControllerServices - (part due)
> -----------------------------------------------------------------------
>
>                 Key: NIFI-1164
>                 URL: https://issues.apache.org/jira/browse/NIFI-1164
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>    Affects Versions: 0.3.0
>            Reporter: Oleg Zhurakousky
>            Assignee: Oleg Zhurakousky
>             Fix For: 0.4.0
>
>
> Similar to NIFI-1143, but the exception is happening in the different place
> {code}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)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to