The issue was sometimes null result during facet navigation or simple
search, results were back after a refresh, we tried to changed the cache to
<httpCaching never304="true"/>. But same behaviour.
That is strange. Just to make sure, you were using the same LBHttpSolrServer
instance for all requests, weren't you?
Yes it was a single static instance for all request on the same
core/index. We have 6 differents indexes on a tomcat.
When testing localy I had no problem, but the dysfunction happened on
real traffic application server.
That's why I think it might not be thread safe.
*My implementation was :* (maybe wrong ?)
LBHttpSolrServer solrServer = new LBHttpSolrServer(new HttpClient(), new
XMLResponseParser(), solrServerUrl.split(","));
solrServer.setConnectionManagerTimeout(CONNECTION_TIMEOUT);
solrServer.setConnectionTimeout(CONNECTION_TIMEOUT);
solrServer.setSoTimeout(READ_TIMEOUT);
solrServer.setAliveCheckInterval(CHECK_HEALTH_INTERVAL_MS);
*What I was suggesting :*
As a LBHttpSolrServer is a wrapper to CommonsHttpSolrServer
I think that is a good idea. Can you open a jira issue?
I have opened : SOLR-1700.
I hope it is precise enough.