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

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

Github user mcgilman commented on the issue:

    https://github.com/apache/nifi/pull/2646
  
    @markap14 I see. It appears then that the underlying issue is that either 
(1) the stateChange method is not being invoked or (2) the leader thread 
interruption is not happening/working. We could include your proposed changes 
and update our implementation of stateChanged to set `leader` to false when the 
`newState` is LOST or SUSPENDED before invoking super. Additionally, in 
`takeLeadership` we should loop while not stopped and is leader. This should 
help if the underlying issue was (2) while the polling could act as additional 
insurance.


> When Primary Node changes, occasionally both the new and old primary nodes 
> continue running processors
> ------------------------------------------------------------------------------------------------------
>
>                 Key: NIFI-5096
>                 URL: https://issues.apache.org/jira/browse/NIFI-5096
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>            Reporter: Mark Payne
>            Assignee: Mark Payne
>            Priority: Major
>
> Occasionally we will see that Node A is Primary Node and then the Primary 
> Node switches to Node B, resulting in both Node A and Node B running 
> processors that are marked as Primary Node only.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to