Apache Lucene open-source search software
SOLR-14684: Skipping check time exceeded for the first request in a proper way
Cao Manh Data4a0d9e8ce6b
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.javaindex 1f40e661bbb..5488f662851 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@@ -214,7 +214,7 @@ public abstract class LBSolrClient extends SolrClient {suffix = ":" + zombieServers.keySet();}// Skipping check time exceeded for the first request- if (previousEx != null && isTimeExceeded(timeAllowedNano, timeOutTime)) {+ if (numServersTried > 0 && isTimeExceeded(timeAllowedNano, timeOutTime)) {throw new SolrServerException("Time allowed to handle this request exceeded"+suffix, previousEx);}if (serverStr == null) {