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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0
    • Fix Version/s: 4.1, 6.0
    • Component/s: clients - java
    • Labels:
      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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: