Github user lvfangmin commented on a diff in the pull request:

    https://github.com/apache/zookeeper/pull/628#discussion_r219023427
  
    --- Diff: src/java/main/org/apache/zookeeper/server/quorum/Leader.java ---
    @@ -1170,6 +1194,16 @@ synchronized public long 
startForwarding(LearnerHandler handler,
     
             return lastProposed;
         }
    +
    +    @Override
    +    public void waitForStartup() throws InterruptedException {
    +        synchronized(zk){
    +            while(!zk.isRunning() && 
!Thread.currentThread().isInterrupted()){
    --- End diff --
    
    Add space here as well.


---

Reply via email to