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

Separate http request creation and execution in SolrJ

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • clients - java
    • None

    Description

      In order to implement some custom behaviors I split the request() method in HttpSolrServer into 2 distinct method createMethod() and executeMethod(). This allows for customization of either/both of these phases vs having it in a single function.

      In my use case I extended HttpSolrServer to support client side timeouts (so_timeout, connectTimeout and request timeout).. without duplicating the code in request() I couldn't accomplish..

      Attachments

        1. SOLR-5825.patch
          1 kB
          Steven Bower
        2. SOLR-5825.patch
          2 kB
          Erick Erickson

        Activity

          People

            erickerickson Erick Erickson
            sbower Steven Bower
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: