lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yo...@apache.org
Subject svn commit: r818239 - in /lucene/solr/trunk/src: solrj/org/apache/solr/client/solrj/impl/LBHttpSolrServer.java test/org/apache/solr/client/solrj/TestLBHttpSolrServer.java
Date Wed, 23 Sep 2009 20:26:44 GMT
Author: yonik
Date: Wed Sep 23 20:26:44 2009
New Revision: 818239

URL: http://svn.apache.org/viewvc?rev=818239&view=rev
Log:
SOLR-844: fix check interval to be milliseconds

Modified:
    lucene/solr/trunk/src/solrj/org/apache/solr/client/solrj/impl/LBHttpSolrServer.java
    lucene/solr/trunk/src/test/org/apache/solr/client/solrj/TestLBHttpSolrServer.java

Modified: lucene/solr/trunk/src/solrj/org/apache/solr/client/solrj/impl/LBHttpSolrServer.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/solrj/org/apache/solr/client/solrj/impl/LBHttpSolrServer.java?rev=818239&r1=818238&r2=818239&view=diff
==============================================================================
--- lucene/solr/trunk/src/solrj/org/apache/solr/client/solrj/impl/LBHttpSolrServer.java (original)
+++ lucene/solr/trunk/src/solrj/org/apache/solr/client/solrj/impl/LBHttpSolrServer.java Wed
Sep 23 20:26:44 2009
@@ -286,7 +286,7 @@
           aliveCheckExecutor = Executors.newSingleThreadScheduledExecutor();
           aliveCheckExecutor.scheduleAtFixedRate(
                   getAliveCheckRunner(new WeakReference<LBHttpSolrServer>(this)),
-                  this.interval, this.interval, TimeUnit.SECONDS);
+                  this.interval, this.interval, TimeUnit.MILLISECONDS);
         }
       }
     }

Modified: lucene/solr/trunk/src/test/org/apache/solr/client/solrj/TestLBHttpSolrServer.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/test/org/apache/solr/client/solrj/TestLBHttpSolrServer.java?rev=818239&r1=818238&r2=818239&view=diff
==============================================================================
--- lucene/solr/trunk/src/test/org/apache/solr/client/solrj/TestLBHttpSolrServer.java (original)
+++ lucene/solr/trunk/src/test/org/apache/solr/client/solrj/TestLBHttpSolrServer.java Wed
Sep 23 20:26:44 2009
@@ -83,7 +83,7 @@
       s[i] = solr[i].getUrl();
     }
     LBHttpSolrServer lbHttpSolrServer = new LBHttpSolrServer(httpClient, s);
-    lbHttpSolrServer.setAliveCheckInterval(1);
+    lbHttpSolrServer.setAliveCheckInterval(1000);
     SolrQuery solrQuery = new SolrQuery("*:*");
     Set<String> names = new HashSet<String>();
     QueryResponse resp = null;
@@ -121,7 +121,7 @@
 
   public void testTwoServers() throws Exception {
     LBHttpSolrServer lbHttpSolrServer = new LBHttpSolrServer(httpClient, solr[0].getUrl(),
solr[1].getUrl());
-    lbHttpSolrServer.setAliveCheckInterval(1);
+    lbHttpSolrServer.setAliveCheckInterval(1000);
     SolrQuery solrQuery = new SolrQuery("*:*");
     Set<String> names = new HashSet<String>();
     QueryResponse resp = null;



Mime
View raw message