You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ma...@apache.org on 2017/02/22 16:19:11 UTC

lucene-solr:branch_6x: SOLR-10166: TestLBHttpSolrClient needs to be hardened.

Repository: lucene-solr
Updated Branches:
  refs/heads/branch_6x e905316be -> 2638f1a12


SOLR-10166: TestLBHttpSolrClient needs to be hardened.

# Conflicts:
#	solr/solrj/src/test/org/apache/solr/client/solrj/TestLBHttpSolrClient.java


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/2638f1a1
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/2638f1a1
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/2638f1a1

Branch: refs/heads/branch_6x
Commit: 2638f1a1286425befa2291b0b2c1609c51acaa0e
Parents: e905316
Author: markrmiller <ma...@apache.org>
Authored: Sun Feb 19 19:40:48 2017 -0500
Committer: markrmiller <ma...@apache.org>
Committed: Wed Feb 22 11:18:58 2017 -0500

----------------------------------------------------------------------
 .../org/apache/solr/client/solrj/TestLBHttpSolrClient.java     | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/2638f1a1/solr/solrj/src/test/org/apache/solr/client/solrj/TestLBHttpSolrClient.java
----------------------------------------------------------------------
diff --git a/solr/solrj/src/test/org/apache/solr/client/solrj/TestLBHttpSolrClient.java b/solr/solrj/src/test/org/apache/solr/client/solrj/TestLBHttpSolrClient.java
index 195f0f8..e523b8d 100644
--- a/solr/solrj/src/test/org/apache/solr/client/solrj/TestLBHttpSolrClient.java
+++ b/solr/solrj/src/test/org/apache/solr/client/solrj/TestLBHttpSolrClient.java
@@ -205,8 +205,8 @@ public class TestLBHttpSolrClient extends SolrTestCaseJ4 {
       s[i] = solr[i].getUrl();
     }
     ModifiableSolrParams params = new ModifiableSolrParams();
-    params.set(HttpClientUtil.PROP_CONNECTION_TIMEOUT, 250);
-    params.set(HttpClientUtil.PROP_SO_TIMEOUT, 250);
+    params.set(HttpClientUtil.PROP_CONNECTION_TIMEOUT, 500);
+    params.set(HttpClientUtil.PROP_SO_TIMEOUT, 500);
     CloseableHttpClient myHttpClient = HttpClientUtil.createClient(params);
     try {
       LBHttpSolrClient client = getLBHttpSolrClient(myHttpClient, s);
@@ -243,6 +243,8 @@ public class TestLBHttpSolrClient extends SolrTestCaseJ4 {
       String name = resp.getResults().get(0).getFieldValue("name").toString();
       if (name.equals(serverName))
         return;
+      
+      Thread.sleep(500);
     }
   }