You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Mark Miller (JIRA)" <ji...@apache.org> on 2013/01/04 20:28:14 UTC

[jira] [Commented] (SOLR-4266) HttpSolrServer does not release connection properly on exception when no response parser is used

    [ https://issues.apache.org/jira/browse/SOLR-4266?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13544144#comment-13544144 ] 

Mark Miller commented on SOLR-4266:
-----------------------------------

Any committer feel free to steal this from me, but assigning myself so we look at it for 4.1 and it doesn't first get pushed due to no assignee.
                
> HttpSolrServer does not release connection properly on exception when no response parser is used
> ------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-4266
>                 URL: https://issues.apache.org/jira/browse/SOLR-4266
>             Project: Solr
>          Issue Type: Bug
>          Components: clients - java
>    Affects Versions: 4.0
>            Reporter: Steve Molloy
>            Assignee: Mark Miller
>             Fix For: 4.1, 5.0
>
>         Attachments: patch-4266.txt
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org