You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Yonik Seeley (JIRA)" <ji...@apache.org> on 2011/04/16 02:05:05 UTC

[jira] [Updated] (SOLR-2466) CommonsHttpSolrServer will retry a query even if _maxRetries is 0

     [ https://issues.apache.org/jira/browse/SOLR-2466?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yonik Seeley updated SOLR-2466:
-------------------------------

    Attachment: SOLR-2466.patch

Here's a patch that sets retry to 0 in HttpClient and lets SolrJ to the retry based on it's count.

> CommonsHttpSolrServer will retry a query even if _maxRetries is 0
> -----------------------------------------------------------------
>
>                 Key: SOLR-2466
>                 URL: https://issues.apache.org/jira/browse/SOLR-2466
>             Project: Solr
>          Issue Type: Bug
>          Components: clients - java
>    Affects Versions: 1.4.1, 3.1, 4.0
>            Reporter: Tomás Fernández Löbbe
>         Attachments: SOLR-2466.patch
>
>
> The HttpClient library used by CommonsHttpSolrServer will retry by default 3 times a request that failed on the server side, even if the _maxRetries field of  CommonsHttpSolrServer is set to 0.
> The retry count should be managed in just one place and CommonsHttpSolrServer seems to be the right one. 
> CommonsHttpSolrServer should override that HttpClient default to 0 retries, and manage the retry count with the value of the field _maxRetries.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

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