You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by da...@apache.org on 2020/08/28 04:01:52 UTC
[lucene-solr] 01/02: SOLR-14684: CloudExitableDirectoryReaderTest
failing about 25% of the time (#1724)
This is an automated email from the ASF dual-hosted git repository.
datcm pushed a commit to branch branch_8x
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git
commit a93cb7102f02b25e50dfac2353e9c4c2a445b177
Author: Cao Manh Dat <da...@apache.org>
AuthorDate: Fri Aug 21 15:41:04 2020 +0700
SOLR-14684: CloudExitableDirectoryReaderTest failing about 25% of the time (#1724)
---
.../solrj/src/java/org/apache/solr/client/solrj/impl/LBSolrClient.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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 a97a1c8..5d091c4 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) {