Github user lavacat commented on a diff in the pull request:
https://github.com/apache/zookeeper/pull/500#discussion_r182922147
--- 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 --
updated
---