Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor improvements on the demo #2

Open
emmanuelbernard opened this issue Jan 28, 2015 · 1 comment
Open

Minor improvements on the demo #2

emmanuelbernard opened this issue Jan 28, 2015 · 1 comment

Comments

@emmanuelbernard
Copy link
Contributor

It would be nice to have a script or some instructions to clean the relevant resources in /tmp and deploy between runs. (Moved to #3)

Also when I stop the grid while still watching a topic, I receive a lot of stacktraces in a loop

$ bin/grid watch entity-batches
[2015-01-28 15:38:55,778] WARN Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect (org.apache.zookeeper.ClientCnxn)
java.net.ConnectException: Connection refused
        at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
        at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:712)
        at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1146)
[2015-01-28 15:38:56,669] WARN Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect (org.apache.zookeeper.ClientCnxn)
java.net.ConnectException: Connection refused
        at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
        at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:712)
        at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1146)
[2015-01-28 15:38:56,782] WARN Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect (org.apache.zookeeper.ClientCnxn)
java.net.ConnectException: Connection refused
        at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
        at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:712)
        at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1146)
@rhauch
Copy link
Owner

rhauch commented Jan 28, 2015

Yes, you will get these exceptions until Kafka comes back up. There's really no way to tell the difference between Kafka going down permanently or temporarily, and consumers (inducing the watch command) will in a normal environment just continue watching until it comes back up.

BTW, the watch command is just running one of Kafka's utilities. Granted, the error output could be made a bit more friendly; that's something that could be done in the future with a custom utility.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants