Zookeeper - Network is unreachable

Zookeeper - Network is unreachable

Hi,

I am new to zookeeper. I tried to connect Solr to zookeeper 3.4.5. I setup an zookeeper ensemble in 3 machines. When network in one of the machine is down, I am getting the following issue frequently till network is available again.

If i didnt address this issue soon, many sockets are getting open, hence "Too Many files are open" Exception is thrown in client side.

Re: Zookeeper - Network is unreachable

Actually my question is why the number of sockets keeps on increasing.

In ClientCnxnSocketNIO.java, SocketChannel tries to connect, but network is not available for machine, so it throws SocketException as mentioned above. socketchannel is closed in catch block. But still number of sockets keeps on increasing.