You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@zookeeper.apache.org by GitBox <gi...@apache.org> on 2021/06/07 14:09:04 UTC

[GitHub] [zookeeper] maoling commented on pull request #1709: ZOOKEEPER-4312: remove unnecessary code

maoling commented on pull request #1709:
URL: https://github.com/apache/zookeeper/pull/1709#issuecomment-855961842


   @chingchan1996 PTAL. What you want is the following ?
                   
   ```
   * The leader election algorithm does not provide the ability of electing a leader from a single instance
    * which is in a configuration of 2 instances.
    * */
   if (self.getQuorumVerifier() instanceof QuorumOracleMaj
       && self.getQuorumVerifier().revalidateVoteset(voteSet, notTimeout != minNotificationInterval)) {
       setPeerState(proposedLeader, voteSet);
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org