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

HttpSolrServer does not release connection properly on exception when no response parser is used

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0
    • 4.1, 6.0
    • clients - java
    • None

    Description

      When using HttpSolrServer for requests with no response parser, any unpredicted status code (401, 500...) will throw the exception properly, but will not close the connection. Since no handle for connection is returned in case of exception, it should be closed. So only case where it should not be closed is when the stream is actually returned, that is, when no response parser is used and the call is successful.

      Attachments

        1. patch-4266.txt
          1 kB
          Steve Molloy

        Activity

          People

            markrmiller@gmail.com Mark Miller
            smolloy Steve Molloy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: