zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eribeiro <...@git.apache.org>
Subject [GitHub] zookeeper pull request #500: ZOOKEEPER-2959: ignore accepted epoch and LEADE...
Date Sat, 14 Apr 2018 21:38:35 GMT
Github user eribeiro commented on a diff in the pull request:

    https://github.com/apache/zookeeper/pull/500#discussion_r181267252
  
    --- Diff: src/java/test/org/apache/zookeeper/server/quorum/Zab1_0Test.java ---
    @@ -161,8 +127,8 @@ public void testLeaderInConnectingFollowers() throws Exception {
             tmpDir.mkdir();
             Leader leader = null;
             try {
    -            QuorumPeer peer = createQuorumPeer(tmpDir);
    -            leader = createLeader(tmpDir, peer);
    +            QuorumPeer peer = ZabUtils.createQuorumPeer(tmpDir);
    --- End diff --
    
    `import static org.apache.zookeeper.server.quorum. ZabUtil.*` then you can simplify method
invocation by using `createQuorumPeer(tmpDir);` instead of `ZabUtils.createQuorumPeer(tmpDir);`


---

Mime
View raw message