cjmamo / kafka-web-console

A web console for Apache Kafka (retired)
Apache License 2.0
762 stars 246 forks source link

2.0.0 hangs on connection lost to zookeeper #23

Open drax68 opened 10 years ago

drax68 commented 10 years ago

Hi. Tried version 2.0.0 - and it hangs without any error if it losts connection to zookeeper (in my case connection to zk managed by local haproxy which restarts every minute to workaround bug https://issues.apache.org/jira/browse/ZOOKEEPER-1506 )

cjmamo commented 10 years ago

By hanging, you mean that it doesn't attempt reconnection right? Do you get the same behaviour using previous versions of the console?

drax68 commented 10 years ago

By hanging I mean that whole kafka-web-console become unresponsible (no webui at all, continous load) and can be temporary fixed with restart. Now I switched back to 1.1.0 - it works fine.

cjmamo commented 10 years ago

I'll attempt to replicate your issue. Please publish a Gist showing the HAProxy config you're using.

drax68 commented 10 years ago

https://gist.github.com/drax68/d36cf1c35fc84ce645a3

cjmamo commented 10 years ago

I tried your config but I couldn't replicate the hanging issue with Chrome. What I noticed is that if I stop and start HAProxy, the console doesn't reconnect to ZK and that is something that needs to be fixed.

drax68 commented 9 years ago

Possibly related https://issues.apache.org/jira/browse/ZOOKEEPER-1506 if generic zookeeper client used.