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

Joel Bernstein commented on SOLR-10698:
---------------------------------------

There is now a fix for this in master. We should discuss the backporting of 
this ticket. A couple of things to think about:

1) Will there be a Lucene/Solr 6.7. Even though 7.0 is imminent I think a 6.7 
would be useful for users that will not be able to immediately upgrade to 7.0.

2) If there is not going to be a 6.7 do we need a bug fix release on 6.6 for 
this issue.

3) There may be a need to backport this even further to a build prior to the 
refactoring for binary transport. If that's the case then it's not a straight 
backport and will involve different classes. We can discuss what classes need 
to be changed in this scenario.

> StreamHandler should allow connections to be closed early 
> ----------------------------------------------------------
>
>                 Key: SOLR-10698
>                 URL: https://issues.apache.org/jira/browse/SOLR-10698
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Varun Thacker
>         Attachments: SOLR-10698.patch
>
>
> Before a stream is drained out, if we call close() we get an exception like 
> this:
> {code}
> at
> org.apache.http.impl.io.ChunkedInputStream.read(ChunkedInputStream.java:215)
> at
> org.apache.http.impl.io.ChunkedInputStream.close(ChunkedInputStream.java:316)
> at
> org.apache.http.impl.execchain.ResponseEntityProxy.streamClosed(ResponseEntityProxy.java:128)
> at
> org.apache.http.conn.EofSensorInputStream.checkClose(EofSensorInputStream.java:228)
> at
> org.apache.http.conn.EofSensorInputStream.close(EofSensorInputStream.java:174)
> at sun.nio.cs.StreamDecoder.implClose(StreamDecoder.java:378)
> at sun.nio.cs.StreamDecoder.close(StreamDecoder.java:193)
> at java.io.InputStreamReader.close(InputStreamReader.java:199)
> at
> org.apache.solr.client.solrj.io.stream.JSONTupleStream.close(JSONTupleStream.java:91)
> at
> org.apache.solr.client.solrj.io.stream.SolrStream.close(SolrStream.java:186)
> {code}
> As quoted from 
> https://www.mail-archive.com/[email protected]/msg130676.html the 
> problem seems to when we hit an exception the /steam handler does not close 
> the stream.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to