Hello,

I am using Solr 5.5.1. Solr Cloud of 80 nodes deployed on HDFS.

To get back results from Solr, I use the cursor approach and the
cloudSolrClient object. While a query was running, I took the solr Cloud
down. The client got stuck in a loop with the following exception:

2017-02-22 15:27:06,985 ERROR o.a.s.c.solrj.impl.CloudSolrClient ~ Request
to collection xxxxx failed due to (510) org.apache.solr.common.SolrException
: Could not find a healthy node to handle the request., retry? 0
.
.
.
.
.
2017-02-22 15:27:06,994 ERROR o.a.s.c.solrj.impl.CloudSolrClient ~ Request
to collection xxxxxx failed due to (510) org.apache.solr.common.
SolrException: Could not find a healthy node to handle the request., retry?
5

Here is my code snippet. I go through a loop until I get the last page to
get back all the results from Solr using the cursor approach. Do I need to
take care of the above situation/exceptions in my code?

while(true){

val rsp: QueryResponse = *cloudSolrclient*.query(cursorQ)
val nextCursorMark: String = rsp.getNextCursorMark

val nextCursorMark: String = rsp.getNextCursorMark

if (cursorMark.equals(nextCursorMark)) break; cloudSolrClient.close()

}

These exceptions are getting generated from *cloudSolrclient*.query(cursorQ)
while getting back the response. Should I catch those exceptions and close
the client if they cross a particular threshold?

Chetas.

Reply via email to