Josh Rosen created SPARK-11887:
----------------------------------

             Summary: Close PersistenceEngine at end of tests
                 Key: SPARK-11887
                 URL: https://issues.apache.org/jira/browse/SPARK-11887
             Project: Spark
          Issue Type: Bug
            Reporter: Josh Rosen
            Assignee: Josh Rosen


In PersistenceEngineSuite, we do not call {{close()}} on the PersistenceEngine 
at the end of the test. For the ZooKeeperPersistenceEngine, this causes us to 
leak a ZooKeeperClient, causing the test logs to be spammed with connection 
error messages from that client:

{code}
15/11/20 05:13:35.789 
pool-1-thread-1-ScalaTest-running-PersistenceEngineSuite-SendThread(localhost:15741)
 INFO ClientCnxn: Opening socket connection to server 
localhost/127.0.0.1:15741. Will not attempt to authenticate using SASL (unknown 
error)
15/11/20 05:13:35.790 
pool-1-thread-1-ScalaTest-running-PersistenceEngineSuite-SendThread(localhost:15741)
 WARN ClientCnxn: Session 0x15124ff48dd0000 for server null, unexpected error, 
closing socket connection and attempting reconnect
java.net.ConnectException: Connection refused
        at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
        at 
sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:739)
        at 
org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:350)
        at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1068)
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to