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

Tomás Fernández Löbbe commented on SOLR-12222:
----------------------------------------------

This seems to be the cases where the "time allowed" is checked inside 
{{LBHttpSolrClient.request}}. I think we can just correct the test. See patch 
attached.

> TestDistributedSearch failure: "Expected to find shardAddress in the up shard 
> info"
> -----------------------------------------------------------------------------------
>
>                 Key: SOLR-12222
>                 URL: https://issues.apache.org/jira/browse/SOLR-12222
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: Tests
>            Reporter: Tomás Fernández Löbbe
>            Priority: Minor
>         Attachments: SOLR-12222.patch
>
>
> This is a pretty common failure of this test. Here is an example from a 
> recent Jenkins failure
> {noformat}
> Build: https://jenkins.thetaphi.de/job/Lucene-Solr-7.x-Linux/1630/
> Java: 64bit/jdk-10 -XX:+UseCompressedOops -XX:+UseParallelGC
> 1 tests failed.
> FAILED:  org.apache.solr.TestDistributedSearch.test
> Error Message:
> Expected to find shardAddress in the up shard info: 
> {error=org.apache.solr.client.solrj.SolrServerException: Time allowed to 
> handle this request 
> exceeded,trace=org.apache.solr.client.solrj.SolrServerException: Time allowed 
> to handle this request exceeded  at 
> org.apache.solr.client.solrj.impl.LBHttpSolrClient.request(LBHttpSolrClient.java:460)
>   at 
> org.apache.solr.handler.component.HttpShardHandlerFactory.makeLoadBalancedRequest(HttpShardHandlerFactory.java:273)
>   at 
> org.apache.solr.handler.component.HttpShardHandler.lambda$submit$0(HttpShardHandler.java:175)
>   at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)  at 
> java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:514)
>   at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)  at 
> com.codahale.metrics.InstrumentedExecutorService$InstrumentedRunnable.run(InstrumentedExecutorService.java:176)
>   at 
> org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:192)
>   at 
> java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1135)
>   at 
> java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
>   at java.base/java.lang.Thread.run(Thread.java:844) ,time=1}
> Stack Trace:
> java.lang.AssertionError: Expected to find shardAddress in the up shard info: 
> {error=org.apache.solr.client.solrj.SolrServerException: Time allowed to 
> handle this request 
> exceeded,trace=org.apache.solr.client.solrj.SolrServerException: Time allowed 
> to handle this request exceeded
>         at 
> org.apache.solr.client.solrj.impl.LBHttpSolrClient.request(LBHttpSolrClient.java:460)
>         at 
> org.apache.solr.handler.component.HttpShardHandlerFactory.makeLoadBalancedRequest(HttpShardHandlerFactory.java:273)
>         at 
> org.apache.solr.handler.component.HttpShardHandler.lambda$submit$0(HttpShardHandler.java:175)
>         at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
>         at 
> java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:514)
>         at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
>         at 
> com.codahale.metrics.InstrumentedExecutorService$InstrumentedRunnable.run(InstrumentedExecutorService.java:176)
>         at 
> org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:192)
>         at 
> java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1135)
>         at 
> java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
>         at java.base/java.lang.Thread.run(Thread.java:844)
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to