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

Mark Payne commented on NIFI-1991:
----------------------------------

[~andrewmlim] - this is a condition that we have had since NiFi was open 
sourced and is a race condition, where if a user restarts the entire cluster  
at the same time, and then begins modifying the flow before all nodes have 
connected, those nodes that haven't yet connected may not be able to connect. 
This is because NiFi does not currently persist which nodes are in the cluster, 
so upon restart it thinks that all nodes have connected.

I do believe it's something that we should tackle very soon. I think that 
NIFI-2195 will address this issue, though, and it is currently slated for 
1.1.0. Since we are narrowing in on 1.0.0 and this is likely to be resolved in 
1.1.0 already, I would like to move the Fix Version to 1.1.0. Is that ok with 
you?

> Zero Master Cluster:  Modifying a disconnected node causes other nodes to not 
> be able to join cluster
> -----------------------------------------------------------------------------------------------------
>
>                 Key: NIFI-1991
>                 URL: https://issues.apache.org/jira/browse/NIFI-1991
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>            Reporter: Andrew Lim
>            Priority: Blocker
>             Fix For: 1.0.0
>
>
> I created a zero master cluster with 3 nodes.  All three were up and running.
> I stopped all 3 instances and then brought up just Node1.
> In the Node1 UI, I made some edits to the flow.
> I attempted but was not able to bring up Node2 and Node3 to join the cluster.
> Here is what I saw in the logs:
> 2016-06-09 14:35:47,051 WARN [main] org.apache.nifi.web.server.JettyServer 
> Failed to start web server... shutting down.
> java.lang.Exception: Unable to load flow due to: java.io.IOException: 
> org.apache.nifi.controller.UninheritableFlowException: Failed to connect node 
> to cluster because local flow is different than cluster flow.
>         at org.apache.nifi.web.server.JettyServer.start(JettyServer.java:753) 
> ~[nifi-jetty-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
>         at org.apache.nifi.NiFi.<init>(NiFi.java:137) 
> [nifi-runtime-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
>         at org.apache.nifi.NiFi.main(NiFi.java:227) 
> [nifi-runtime-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
> Caused by: java.io.IOException: 
> org.apache.nifi.controller.UninheritableFlowException: Failed to connect node 
> to cluster because local flow is different than cluster flow.
>         at 
> org.apache.nifi.controller.StandardFlowService.load(StandardFlowService.java:501)
>  ~[nifi-framework-core-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
>         at org.apache.nifi.web.server.JettyServer.start(JettyServer.java:744) 
> ~[nifi-jetty-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
>         ... 2 common frames omitted
> Caused by: org.apache.nifi.controller.UninheritableFlowException: Failed to 
> connect node to cluster because local flow is different than cluster flow.
>         at 
> org.apache.nifi.controller.StandardFlowService.loadFromConnectionResponse(StandardFlowService.java:862)
>  ~[nifi-framework-core-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
>         at 
> org.apache.nifi.controller.StandardFlowService.load(StandardFlowService.java:497)
>  ~[nifi-framework-core-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
>         ... 3 common frames omitted
> Caused by: org.apache.nifi.controller.UninheritableFlowException: Proposed 
> configuration is not inheritable by the flow controller because of flow 
> differences: Found difference in Flows:
> Local Fingerprint contains additional configuration from Cluster Fingerprint: 
> eba77dac-32ad-356b-8a82-f669d046aa21eba77dac-32ad-356b-8a82-f669d046aa21org.apache.nifi.processors.standard.LogAttributeNO_VALUEAttributes
>  to IgnoreNO_VALUEAttributes to LogNO_VALUELog prefixNO_VALUEs
>         at 
> org.apache.nifi.controller.StandardFlowSynchronizer.sync(StandardFlowSynchronizer.java:219)
>  ~[nifi-framework-core-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
>         at 
> org.apache.nifi.controller.FlowController.synchronize(FlowController.java:1329)
>  ~[nifi-framework-core-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
>         at 
> org.apache.nifi.persistence.StandardXMLFlowConfigurationDAO.load(StandardXMLFlowConfigurationDAO.java:75)
>  ~[nifi-framework-core-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
>         at 
> org.apache.nifi.controller.StandardFlowService.loadFromBytes(StandardFlowService.java:668)
>  ~[nifi-framework-core-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
>         at 
> org.apache.nifi.controller.StandardFlowService.loadFromConnectionResponse(StandardFlowService.java:839)
>  ~[nifi-framework-core-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
>         ... 4 common frames omitted
> 2016-06-09 14:35:47,052 INFO [Thread-1] org.apache.nifi.NiFi Initiating 
> shutdown of Jetty web server...



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

Reply via email to