mesos / storm

Storm on Mesos!
Apache License 2.0
138 stars 66 forks source link

tests are much more noisy after logviewer autolaunching change #216

Open erikdw opened 6 years ago

erikdw commented 6 years ago

As part of logviewer autolaunching we added a wrapper around the Apache Curator library for our code to directly manipulate state in ZooKeeper. This resulted in a bunch of noisy log lines during the maven tests, looking like the following:

9984 [main-SendThread(localhost:2181)] WARN  o.a.z.ClientCnxn - Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection refused
    at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[?:1.7.0_79]
    at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:739) ~[?:1.7.0_79]
    at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361) ~[zookeeper-3.4.8.jar:3.4.8--1]
    at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1141) [zookeeper-3.4.8.jar:3.4.8--1]
9984 [main-SendThread(localhost:2181)] WARN  o.a.z.ClientCnxn - Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection refused
    at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[?:1.7.0_79]
    at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:739) ~[?:1.7.0_79]
    at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361) ~[zookeeper-3.4.8.jar:3.4.8--1]
    at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1141) [zookeeper-3.4.8.jar:3.4.8--1]

We should look into leveraging the in-process ZooKeeper server that seems to be launched:

10213 [main] INFO  s.m.u.ZKClient - Attempting to connect to following ZooKeeper servers: 127.0.0.1:51046
10213 [main] INFO  o.a.c.f.i.CuratorFrameworkImpl - Starting