zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Han (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ZOOKEEPER-2988) NPE triggered if server receives a vote for a server id not in their voting view
Date Wed, 02 May 2018 04:21:00 GMT

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

Michael Han commented on ZOOKEEPER-2988:
----------------------------------------

{quote}This bug is applicable to 3.4 as well - imo it's a worse danger on that branch since
its easy for configuration files to be stale.
{quote}
Make sense. Just committed the patch for branch-3.4, and updated the Jira fixed version to
include 3.4.

> NPE triggered if server receives a vote for a server id not in their voting view
> --------------------------------------------------------------------------------
>
>                 Key: ZOOKEEPER-2988
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2988
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: leaderElection
>    Affects Versions: 3.5.3, 3.4.11, 3.4.12
>            Reporter: Brian Nixon
>            Assignee: Brian Nixon
>            Priority: Minor
>             Fix For: 3.5.4, 3.6.0, 3.4.13
>
>
> We've observed the following behavior in elections when a node is lagging behind the
quorum in its view of the ensemble topology.
> - Node A is operating with node B in its voting view, but without view of node C.
> - B votes for C.
> - A then switches its vote to C, but throws a NPE when attempting to connect.
> This causes the QuorumPeer to spin up a Follower only to immediately have it shutdown
by the exception.
> Ideally, A would not advertise a vote for a server that it will not follow.



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

Mime
View raw message