Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-14684: CloudExitableDirectoryReaderTest failing about 25% of the time (#1724)

Cao Manh Dat2b2b9e71d3de
diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/LBSolrClient.java b/solr/solrj/src/java/org/apache/solr/client/solrj/impl/LBSolrClient.java
index c1e6af79623..1f40e661bbb 100644
--- a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/LBSolrClient.java
+++ b/solr/solrj/src/java/org/apache/solr/client/solrj/impl/LBSolrClient.java
@@ -213,7 +213,8 @@ public abstract class LBSolrClient extends SolrClient {
if (previousEx == null) {
suffix = ":" + zombieServers.keySet();
}
- if (isTimeExceeded(timeAllowedNano, timeOutTime)) {
+ // Skipping check time exceeded for the first request
+ if (previousEx != null && isTimeExceeded(timeAllowedNano, timeOutTime)) {
throw new SolrServerException("Time allowed to handle this request exceeded"+suffix, previousEx);
}
if (serverStr == null) {