On 10/6/2014 12:15 PM, amitha wrote: > Yeah I saw that does if I call shutdown after a request and need to make > another request I get > org.apache.solr.client.solrj.SolrServerException: > java.lang.IllegalStateException: Connection pool shut down
You would only call shutdown if you're done with the server object and don't plan to use it again. That method shuts the object down so it can't be used any more. I admit that I don't have a lot of experience with CloudSolrServer, and I haven't looked at the code in enough detail to know exactly how it works ... but I had always thought that the zookeeper client would maintain a constant connection with every ZK server that you tellit about. You haven't put a load balancer in front of your zookeeper servers, have you? That's completely unnecessary - just inform CloudSolrServer about all three of them. I thought we got some much better javadocs into a recent release, but it looks like it's only in the new stable branch and trunk. Here's the new CloudSolrServer(String) javadoc comment that will be in 5.0: http://apaste.info/BVu Thanks, Shawn