[
https://issues.apache.org/jira/browse/SOLR-10698?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16016328#comment-16016328
]
Joel Bernstein commented on SOLR-10698:
---------------------------------------
I started to dig into this ticket. What I found straight off is that when a
client disconnects, the streaming code continues to write data to the
outputstream and and an exception is never thrown. The expected behavior would
be to receive an org.eclipse.jetty.io.EofException. I'm currently investigating
how this could be happening. One possible reason for this is that the exception
is being swallowed somewhere in Jetty's outputstream stack, so that client
disconnects don't throw exceptions. I'll dig into this and see what I find.
> 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
>
> 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]