Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

Application cannot be terminated when in loop trying to connect to external zookeeper #417

Open
szpak opened this issue May 6, 2015 · 0 comments

Comments

@szpak
Copy link
Collaborator

szpak commented May 6, 2015

When in the loop end application with micro-infra is trying to connect external zookeeper it is impossible to kill it with CTRL-C or SIGTERM. The ultimate solution in the form of SIGKILL is needed.

2015-05-06 21:45:14.190  INFO 13562 --- [caldomain:2181)] org.apache.zookeeper.ClientCnxn          : Opening socket connection to server localhost.localdomain/127.0.0.1:2181. Will not attempt to authenticate using SASL (unknown error)
2015-05-06 21:45:14.191  WARN 13562 --- [caldomain:2181)] org.apache.zookeeper.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)
    at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
    at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)
    at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081)

2015-05-06 21:45:15.291  INFO 13562 --- [caldomain:2181)] org.apache.zookeeper.ClientCnxn          : Opening socket connection to server localhost.localdomain/127.0.0.1:2181. Will not attempt to authenticate using SASL (unknown error)
2015-05-06 21:45:15.293  WARN 13562 --- [caldomain:2181)] org.apache.zookeeper.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)
    at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
    at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)
    at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081)
@szpak szpak changed the title Application cannot terminated when in loop trying to connect to external zookeeper Application cannot be terminated when in loop trying to connect to external zookeeper May 6, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant