zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From afine <...@git.apache.org>
Subject [GitHub] zookeeper pull request #419: ZOOKEEPER-2849: Exponential back-off retry for ...
Date Thu, 16 Nov 2017 22:51:54 GMT
Github user afine commented on a diff in the pull request:

    https://github.com/apache/zookeeper/pull/419#discussion_r151560463
  
    --- Diff: src/java/main/org/apache/zookeeper/server/quorum/QuorumPeer.java ---
    @@ -946,7 +946,8 @@ protected Election createElectionAlgorithm(int electionAlgorithm){
                     le = new AuthFastLeaderElection(this, true);
                     break;
                 case 3:
    -                qcm = new QuorumCnxManager(this);
    +                qcm = new QuorumCnxManager(this,
    +                    ExponentialBackoffStrategy.builder().build());
    --- End diff --
    
    For instance, it may be nice to have the default strategy perform the existing behavior.


---

Mime
View raw message