You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Alan Woodward (JIRA)" <ji...@apache.org> on 2015/03/08 14:57:38 UTC

[jira] [Commented] (SOLR-6944) ReplicationFactorTest and HttpPartitionTest both fail with org.apache.http.NoHttpResponseException: The target server failed to respond

    [ https://issues.apache.org/jira/browse/SOLR-6944?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14352051#comment-14352051 ] 

Alan Woodward commented on SOLR-6944:
-------------------------------------

I'm pretty sure this is due to stale connections (it generally occurs on the first request after a Jetty has shutdown and then been restarted).  There are two places that need fixing:
* in HttpSolrClient - we should always call ClientConnectionManager.closeExpiredConnections() if we get a NoHttpResponseException, whether or not we retry (see SOLR-7203)
* in CloudSolrClient.  We have a couple of options here: call closeExpiredConnections() in a background thread (we already have an executorservice here, so we can just use that), or alternatively call it whenever there's a change in the cluster state.  I quite like the latter idea - it would be useful to have a generic 'register a callback that gets called whenever the cluster state changes' API on ZkStateReader, and CloudSolrClient could just use that.

> ReplicationFactorTest and HttpPartitionTest both fail with org.apache.http.NoHttpResponseException: The target server failed to respond
> ---------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-6944
>                 URL: https://issues.apache.org/jira/browse/SOLR-6944
>             Project: Solr
>          Issue Type: Test
>            Reporter: Mark Miller
>            Assignee: Mark Miller
>         Attachments: SOLR-6944.patch
>
>
> Our only recourse is to do a client side retry on such errors. I have some retry code for this from SOLR-4509 that I will pull over here.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org