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 2016/04/05 19:16:25 UTC
[jira] [Commented] (SOLR-8933) SolrDispatchFilter::consumeInput
logs "Stream Closed" IOException
[ https://issues.apache.org/jira/browse/SOLR-8933?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15226691#comment-15226691 ]
Mark Miller commented on SOLR-8933:
-----------------------------------
SingleThreadedJsonLoader looks like it's off?
{code}
try {
// We won't close this stream because it belongs to ServletContainer Request
Reader reader = stream.getReader();
if (log.isTraceEnabled()) {
String body = IOUtils.toString(reader);
log.trace("body", body);
reader = new StringReader(body);
}
this.processUpdate(reader);
} catch (ParseException e) {
throw new SolrException(SolrException.ErrorCode.BAD_REQUEST, "Cannot parse provided JSON: " + e.getMessage());
}
parser = new JSONParser(reader);
this.processUpdate();
}
{code}
> SolrDispatchFilter::consumeInput logs "Stream Closed" IOException
> -----------------------------------------------------------------
>
> Key: SOLR-8933
> URL: https://issues.apache.org/jira/browse/SOLR-8933
> Project: Solr
> Issue Type: Bug
> Reporter: Mike Drob
> Attachments: SOLR-8933.patch
>
>
> After SOLR-8453 we started seeing some IOExceptions coming out of SolrDispatchFilter with "Stream Closed" messages.
> It looks like we are indeed closing the request stream in several places when we really need to be letting the web container handle their life cycle. I've got a preliminary patch ready and am working on testing it to make sure there are no regressions.
> A very strange piece of this is that I have been entirely unable to reproduce it on a unit test, but have seen it on cluster deployment quite consistently.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org