[
https://issues.apache.org/jira/browse/SOLR-13293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16947537#comment-16947537
]
Cao Manh Dat commented on SOLR-13293:
-------------------------------------
Hi guys,
The problem here happened since in
{{SolrCmdDistributor.Req.getRfFromResponse()}} the {{InputStream}} (passed by
ConcurrentUpdateHttp2SolrClient) had been closed then the client was tried to
fully consume it before closing it.
What are consequences of this problem?
* People get panic about error log like this {{Error consuming and closing http
response stream}}
That is the only problem since {{SolrCmdDistributor.Req.getRfFromResponse}}
already fully consume the request before closing it.
That problem already happens in previous versions of Solr but
{{ConcurrentUpdateSolrClient}} just quietly catch the exception.
My propose for this problem is stopping close() the {{InputStream}} in
{{SolrCmdDistributor.Req.getRfFromResponse}} and note to users that the
InputStream passed by {{ConcurrentUpdateHttp2SolrClient}} should not be closed.
> org.apache.solr.client.solrj.impl.ConcurrentUpdateHttp2SolrClient - Error
> consuming and closing http response stream.
> ---------------------------------------------------------------------------------------------------------------------
>
> Key: SOLR-13293
> URL: https://issues.apache.org/jira/browse/SOLR-13293
> Project: Solr
> Issue Type: Bug
> Components: SolrJ
> Affects Versions: 8.0
> Reporter: Karl Stoney
> Priority: Blocker
> Fix For: 8.3
>
> Attachments: SOLR-13293.patch
>
>
> Hi,
> Testing out branch_8x, we're randomly seeing the following errors on a simple
> 3 node cluster. It doesn't appear to affect replication (the cluster remains
> green).
> They come in (mass, literally 1000s at a time) bulk.
> There we no network issues at the time.
> {code:java}
> 16:53:01.492 [updateExecutor-4-thread-34-processing-x:at-uk_shard1_replica_n1
> r:core_node3 null n:solr-2.search-solr.preprod.k8.atcloud.io:80_solr c:at-uk
> s:shard1] ERROR
> org.apache.solr.client.solrj.impl.ConcurrentUpdateHttp2SolrClient - Error
> consuming and closing http response stream.
> java.nio.channels.AsynchronousCloseException: null
> at
> org.eclipse.jetty.client.util.InputStreamResponseListener$Input.read(InputStreamResponseListener.java:316)
> ~[jetty-client-9.4.14.v20181114.jar:9.4.14.v20181114]
> at java.io.InputStream.read(InputStream.java:101) ~[?:1.8.0_191]
> at
> org.eclipse.jetty.client.util.InputStreamResponseListener$Input.read(InputStreamResponseListener.java:287)
> ~[jetty-client-9.4.14.v20181114.jar:9.4.14.v20181114]
> at
> org.apache.solr.client.solrj.impl.ConcurrentUpdateHttp2SolrClient$Runner.sendUpdateStream(ConcurrentUpdateHttp2SolrClient.java:283)
> ~[solr-solrj-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT
> b14748e61fd147ea572f6545265b883fa69ed27f - root
> - 2019-03-04 16:30:04]
> at
> org.apache.solr.client.solrj.impl.ConcurrentUpdateHttp2SolrClient$Runner.run(ConcurrentUpdateHttp2SolrClient.java:176)
> ~[solr-solrj-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT
> b14748e61fd147ea572f6545265b883fa69ed27f - root - 2019-03-04
> 16:30:04]
> at
> com.codahale.metrics.InstrumentedExecutorService$InstrumentedRunnable.run(InstrumentedExecutorService.java:176)
> ~[metrics-core-3.2.6.jar:3.2.6]
> at
> org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:209)
> ~[solr-solrj-8.1.0-SNAPSHOT.jar:8.1.0-SNAPSHOT
> b14748e61fd147ea572f6545265b883fa69ed27f - root - 2019-03-04 16:30:04]
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> [?:1.8.0_191]
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> [?:1.8.0_191]
> at java.lang.Thread.run(Thread.java:748) [?:1.8.0_191]
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]