On 1/26/22 06:53, Reej Nayagam wrote:
The scenario is solr servers are up, but majority of the zk is down, so we need to tell the issue is with the zookeeper. I don’t find a way on how to identify the zookeeper status without waiting for the timeout to happen after 30 seconds.
I think the issue here is that the SolrZkClient is created with a cconstructor that does not specify the connection timeout. That timeout defaults to 30 seconds. You'll want to create it with both the client timeout and the connect timeout specified. Because in your situation with ZK being down you can't connect, it will be the connect timeout that applies, not the client timeout.
Thanks, Shawn