lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Miller (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-4266) HttpSolrServer does not release connection properly on exception when no response parser is used
Date Fri, 04 Jan 2013 19:28:14 GMT

    [ 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


Mime
View raw message