[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-131?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mahadev konar updated ZOOKEEPER-131:
------------------------------------

       Resolution: Fixed
    Fix Version/s: 3.0.0
     Hadoop Flags: [Reviewed]
           Status: Resolved  (was: Patch Available)

I just committed this. Thanks Ben.

> Old leader election can elect a dead leader over and over again
> ---------------------------------------------------------------
>
>                 Key: ZOOKEEPER-131
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-131
>             Project: Zookeeper
>          Issue Type: Bug
>          Components: leaderElection
>            Reporter: Benjamin Reed
>            Assignee: Benjamin Reed
>             Fix For: 3.0.0
>
>         Attachments: ZOOKEEPER-131.patch, ZOOKEEPER-131.patch, 
> ZOOKEEPER-131.patch
>
>
> I think there is a race condition that is probably easy to get into with the 
> old leader election and a large number of servers:
> 1) Leader dies
> 2) Followers start looking for a new leader before all Followers have 
> abandoned the Leader
> 3) The Followers looking for a new leader see votes of Followers still 
> following the (now dead) Leader and start voting for the dead Leader
> 4) The dead Leader gets reelected.
> For the old leader election a server should not vote for another server that 
> is not nominating himself.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to