Github user eribeiro commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/500#discussion_r181267704 --- Diff: src/java/main/org/apache/zookeeper/server/quorum/Leader.java --- @@ -900,9 +902,10 @@ public long getEpochToPropose(long sid, long lastAcceptedEpoch) throws Interrupt return epoch; } } - - private HashSet<Long> electingFollowers = new HashSet<Long>(); - private boolean electionFinished = false; + // VisibleForTesting + protected HashSet<Long> electingFollowers = new HashSet<Long>(); --- End diff -- `protected Set<Long> electingFollowers = new HashSet<>()`
---