You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Márcio Furlani Carmona (JIRA)" <ji...@apache.org> on 2014/11/11 00:26:36 UTC

[jira] [Created] (SOLR-6724) HttpServer maxRetries attributes seems like not being used as expected

Márcio Furlani Carmona created SOLR-6724:
--------------------------------------------

             Summary: HttpServer maxRetries attributes seems like not being used as expected
                 Key: SOLR-6724
                 URL: https://issues.apache.org/jira/browse/SOLR-6724
             Project: Solr
          Issue Type: Bug
          Components: clients - java
    Affects Versions: 4.10.2
         Environment: OS X 10.9.5
Java 1.7.0_60
            Reporter: Márcio Furlani Carmona
            Priority: Minor


Looks like maxRetries is being misused in the org.apache.solr.client.solrj.impl.HttpSolrServer.createMethod(SolrRequest) instead of being used in the executeMethod(HttpRequestBase,ResponseParser).

In the current implementation the maxRetries is used in a loop that only instantiates the HttpRequestBase but it doesn't effectively make any HTTP request. Also the retries are made even in a successful instantiation  of the HttpRequestBase as there's no break too.
I notice there's also a catch for NoHttpResponseException but as no HTTP request is made I guess it will never happen.



--
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