Github user mkedwards commented on the issue:

    https://github.com/apache/zookeeper/pull/707
  
    After groveling through 
https://builds.apache.org/job/PreCommit-ZOOKEEPER-github-pr-build/2708/consoleText,
 I think this may be a contributing factor to flaky tests:
    ```
         [exec]     [junit] 2018-11-22 00:18:30,336 [myid:] - INFO  
[QuorumPeerListener:QuorumCnxManager$Listener@884] - My election bind port: 
localhost/127.0.0.1:19459
         [exec]     [junit] 2018-11-22 00:18:30,337 [myid:] - INFO  
[QuorumPeer[myid=1](plain=/127.0.0.1:19457)(secure=disabled):NettyServerCnxnFactory@493]
 - binding to port localhost/127.0.0.1:19466
         [exec]     [junit] 2018-11-22 00:18:30,337 [myid:] - ERROR 
[QuorumPeer[myid=1](plain=/127.0.0.1:19457)(secure=disabled):NettyServerCnxnFactory@497]
 - Error while reconfiguring
         [exec]     [junit] org.jboss.netty.channel.ChannelException: Failed to 
bind to: localhost/127.0.0.1:19466
         [exec]     [junit]     at 
org.jboss.netty.bootstrap.ServerBootstrap.bind(ServerBootstrap.java:272)
         [exec]     [junit]     at 
org.apache.zookeeper.server.NettyServerCnxnFactory.reconfigure(NettyServerCnxnFactory.java:494)
         [exec]     [junit]     at 
org.apache.zookeeper.server.quorum.QuorumPeer.processReconfig(QuorumPeer.java:1947)
         [exec]     [junit]     at 
org.apache.zookeeper.server.quorum.Follower.processPacket(Follower.java:154)
         [exec]     [junit]     at 
org.apache.zookeeper.server.quorum.Follower.followLeader(Follower.java:93)
         [exec]     [junit]     at 
org.apache.zookeeper.server.quorum.QuorumPeer.run(QuorumPeer.java:1263)
         [exec]     [junit] Caused by: java.net.BindException: Address already 
in use
         [exec]     [junit]     at sun.nio.ch.Net.bind0(Native Method)
         [exec]     [junit]     at sun.nio.ch.Net.bind(Net.java:433)
         [exec]     [junit]     at sun.nio.ch.Net.bind(Net.java:425)
         [exec]     [junit]     at 
sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
         [exec]     [junit]     at 
sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
         [exec]     [junit]     at 
org.jboss.netty.channel.socket.nio.NioServerBoss$RegisterTask.run(NioServerBoss.java:193)
         [exec]     [junit]     at 
org.jboss.netty.channel.socket.nio.AbstractNioSelector.processTaskQueue(AbstractNioSelector.java:391)
         [exec]     [junit]     at 
org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:315)
         [exec]     [junit]     at 
org.jboss.netty.channel.socket.nio.NioServerBoss.run(NioServerBoss.java:42)
         [exec]     [junit]     at 
org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
         [exec]     [junit]     at 
org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)
         [exec]     [junit]     at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
         [exec]     [junit]     at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
         [exec]     [junit]     at java.lang.Thread.run(Thread.java:748)
    ```


---

Reply via email to