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

Jordan Zimmerman commented on CURATOR-47:
-----------------------------------------

Also, this code isn't really valid:
    if ( (selectors[myid].hasLeadership()) && (myid != 
Integer.parseInt(selectors[myid].getLeader().getId())) )

If the takeLeadership() method has yet to completely exit (even though it's 
been signaled to exit), it will fail incorrectly. 
                
> Two leaders in the leader election recipe
> -----------------------------------------
>
>                 Key: CURATOR-47
>                 URL: https://issues.apache.org/jira/browse/CURATOR-47
>             Project: Apache Curator
>          Issue Type: Bug
>          Components: Recipes
>    Affects Versions: 2.1.0-incubating
>         Environment: Windows and Java 1.7
>            Reporter: Germán Blanco
>             Fix For: TBD
>
>         Attachments: patch_test_rolling.patch, TestLeaderElection.java
>
>
> When using the Leader Election recipe and doing a rolling restart of the 
> zookeeper servers in the cluster, it seems that at some points there are two 
> participants that see themselves as leaders.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to