You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Brent <br...@gmail.com> on 2016/09/20 21:43:32 UTC

IOException errors in SolrJ client

I'm getting periodic errors when adding documents from a Java client app.
It's always a sequence of an error message logged in CloudSolrClient, then
an exception thrown from 
org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:143):

Error message:
[ERROR][impl.CloudSolrClient][pool-6-thread-27][CloudSolrClient.java@904] -
Request to collection test_collection failed due to (0)
org.apache.http.NoHttpResponseException: 10.112.7.3:8983 failed to respond,
retry? 0

Exception with stack:
org.apache.solr.client.solrj.SolrServerException: IOException occured when
talking to server at: http://10.112.7.3:8983/solr/test_collection
        at
org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.java:589)
        at
org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:241)
        at
org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:230)
        at
org.apache.solr.client.solrj.impl.LBHttpSolrClient.doRequest(LBHttpSolrClient.java:372)
        at
org.apache.solr.client.solrj.impl.LBHttpSolrClient.request(LBHttpSolrClient.java:325)
        at
org.apache.solr.client.solrj.impl.CloudSolrClient.sendRequest(CloudSolrClient.java:1100)
        at
org.apache.solr.client.solrj.impl.CloudSolrClient.requestWithRetryOnStaleState(CloudSolrClient.java:871)
        at
org.apache.solr.client.solrj.impl.CloudSolrClient.request(CloudSolrClient.java:807)
        at
org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:150)
        ...
Caused by: org.apache.http.NoHttpResponseException: 10.112.7.3:8983 failed
to respond
        at
org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:143)
        at
org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:57)
        at
org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:261)
        at
org.apache.http.impl.DefaultBHttpClientConnection.receiveResponseHeader(DefaultBHttpClientConnection.java:165)
        at
org.apache.http.impl.conn.CPoolProxy.receiveResponseHeader(CPoolProxy.java:167)
        at
org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:272)
        at
org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:124)
        at
org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:271)
        at
org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184)
        at
org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88)
        at
org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
        at
org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
        at
org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
        at
org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:107)
        at
org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55)
        at
org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.java:480)
        ... 22 more

I'm guessing it's due to a timeout, but maybe not my client's timeout
setting, but instead a timeout between two Solr Cloud servers, perhaps when
the document is being sent from one to the other. This app is running on
machine 10.112.7.4, and test_collection has a single shard, replicated on
both 10.112.7.4 and 10.112.7.3, with .3 being the leader. Is this saying
that .4 got the add request from my app, and tried to tell .3 to add the
doc, but .3 didn't respond? If so, is it a timeout, and if so, can I
increase the timeout value?



--
View this message in context: http://lucene.472066.n3.nabble.com/IOException-errors-in-SolrJ-client-tp4297015.html
Sent from the Solr - User mailing list archive at Nabble.com.