lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mikhail Ibraheem <mikhail.ibrah...@oracle.com>
Subject Is CloudSolrClient thread-safe?
Date Tue, 28 Mar 2017 14:13:30 GMT
Hi,

I have a project with solr and spring. I am have only one instance of CloudSolrClient at the
context (singleton).

This is because I believe that it should be only one instance to load balance between the
nodes.

I have big issue which doesn't occur all the times, it is intermittent:

 

java.lang.ClassCastException: java.lang.String cannot be cast to org.apache.solr.common.SolrDocumentList

        at org.apache.solr.client.solrj.response.QueryResponse.setResponse(QueryResponse.java:126)

        at org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:149)

        at org.apache.solr.client.solrj.SolrClient.query(SolrClient.java:942)

        at org.apache.solr.client.solrj.SolrClient.query(SolrClient.java:957)

 

 

Please advise.

 

Thanks

Mikhail

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message