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

Flavio Junqueira commented on ZOOKEEPER-1732:
---------------------------------------------

bq. If that is the case, then it would be solved by refreshing the proposal 
after the Follower connects to the Leader, right?

How would you refresh the proposal?

In my view, there are three ways to solve this issue:

# If a follower receives a notification from the guy it thinks it is following 
and the notification is more recent (later round or higher zxid), then it stops 
following and goes back to LOOKING.
# Same as before but instead of transitioning to LOOKING, the follower updates 
its notification and keeps trying to connect to the leader.
# We change LeanerInfo so that it carries leader election information for 
verification purposes.

I think we should do the first one. The second one bypasses the LE protocol, so 
I'm not in favor of going that direction, although it might not break anything 
if we do it. The third option changes the protocol, so it is a bit of a pain to 
deal with the backward compatibility stuff.  

 
                
> ZooKeeper server unable to join established ensemble
> ----------------------------------------------------
>
>                 Key: ZOOKEEPER-1732
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1732
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: leaderElection
>    Affects Versions: 3.4.5
>         Environment: Windows 7, Java 1.7
>            Reporter: Germán Blanco
>            Priority: Blocker
>             Fix For: 3.5.0, 3.4.6
>
>         Attachments: zklog.tar.gz
>
>
> I have a test in which I do a rolling restart of three ZooKeeper servers and 
> it was failing from time to time.
> I ran the tests in a loop until the failure came out and it seems that at 
> some point one of the servers is unable to join the enssemble formed by the 
> other two.

--
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