Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-6724

HttpServer maxRetries attributes seems like not being used as expected

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 4.10.2
    • None
    • clients - java
    • None
    • OS X 10.9.5
      Java 1.7.0_60

    Description

      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.

      Attachments

        1. SOLR-6724.patch
          24 kB
          Greg Solovyev

        Issue Links

          Activity

            People

              Unassigned Unassigned
              marciocarmona Márcio Furlani Carmona
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: