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

ASF GitHub Bot commented on NIFI-2605:
--------------------------------------

Github user markap14 commented on the issue:

    https://github.com/apache/nifi/pull/900
  
    Thanks for reviewing guys. I did just push a new commit, because I noticed 
some weirdness. When starting up, sometimes nodes would log that there is a 
cluster coordinator when there actually was not. It appears that if 
non-Coordinator nodes that are running an embedded zookeeper are shutdown (or 
an external zookeeper is shutdown), and then coordinator is shutdown, the 
coordinator's address is persisted in ZooKeeper. So if ZK and the cluster are 
restarted, the nodes would think there is a coordinator when there is not. They 
would then all fail to connect to the cluster because the ZNode that held the 
coordinator address would be deleted when ZK/Curator realized that the node is 
no longer connected. As a result, there would be no Cluster Coordinator and no 
node would register for the role because they all thought one was elected 
previously.
    
    This new commit addresses this by detected the condition in 
StandardFlowService and then registering for the role.
    
    You will note that a lot of files changed for this. This is because I 
needed to move the NoClusterCoordinatorException from 
nifi-framework-cluster-protocol to nifi-framework-api and the package name 
changed to reflect a more accurate package, so imports were changed in several 
files.


> On restart of all nodes in nifi cluster one of the nodes failed to join the 
> cluster with fingerprint mismatch
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: NIFI-2605
>                 URL: https://issues.apache.org/jira/browse/NIFI-2605
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>    Affects Versions: 1.0.0
>            Reporter: Arpit Gupta
>            Assignee: Mark Payne
>            Priority: Blocker
>             Fix For: 1.0.0
>
>
> Follow stack trace was present in the node that did not connect
> {code}
> 2016-08-18 12:04:55,628 INFO [Process Cluster Protocol Request-1] 
> o.a.n.c.p.impl.SocketProtocolListener Finished processing request 
> ea80ad62-585c-4460-9ee9-93cc12c8db54 (type=NODE_STATUS_CHANGE, length=1052 
> bytes) from host in 61 millis
> 2016-08-18 12:04:55,806 ERROR [main] o.a.nifi.controller.StandardFlowService 
> Failed to load flow from cluster due to: 
> org.apache.nifi.controller.UninheritableFlowException: Failed to connect node 
> to cluster because local flow is different than cluster flow.
> 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:866)
>  ~[nifi-framework-core-1.0.0.jar:1.0.0]
>         at 
> org.apache.nifi.controller.StandardFlowService.load(StandardFlowService.java:492)
>  ~[nifi-framework-core-1.0.0.jar:1.0.0]
>         at org.apache.nifi.web.server.JettyServer.start(JettyServer.java:746) 
> [nifi-jetty-1.0.0.jar:1.0.0]
>         at org.apache.nifi.NiFi.<init>(NiFi.java:137) 
> [nifi-runtime-1.0.0.jar:1.0.0]
>         at org.apache.nifi.NiFi.main(NiFi.java:227) 
> [nifi-runtime-1.0.0.jar:1.0.0]
> 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:   
> 7c84501d-d10c-407c-b9f3-1d80e38fe36a9d7d39c0-0156-1000-ffff-ffffc6ce3a7d9d7d3cd1-0156-1000-0000-0000
> Cluster Fingerprint: 9d89d844-0156-1000-e4bc-8ae5e0566749
> {code}
> Edit: As per the discussion below, this manifested due to 3 different 
> problems. The one being solved in this ticket is the one Mark addressed in 
> the linked PR, that a node will always register to be Cluster Coordinator 
> when it joins a cluster.



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

Reply via email to