lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From markrmil...@apache.org
Subject svn commit: r1380101 - /lucene/dev/trunk/solr/core/src/java/org/apache/solr/cloud/ElectionContext.java
Date Mon, 03 Sep 2012 00:37:46 GMT
Author: markrmiller
Date: Mon Sep  3 00:37:46 2012
New Revision: 1380101

URL: http://svn.apache.org/viewvc?rev=1380101&view=rev
Log:
drop to 100ms pause for now

Modified:
    lucene/dev/trunk/solr/core/src/java/org/apache/solr/cloud/ElectionContext.java

Modified: lucene/dev/trunk/solr/core/src/java/org/apache/solr/cloud/ElectionContext.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/core/src/java/org/apache/solr/cloud/ElectionContext.java?rev=1380101&r1=1380100&r2=1380101&view=diff
==============================================================================
--- lucene/dev/trunk/solr/core/src/java/org/apache/solr/cloud/ElectionContext.java (original)
+++ lucene/dev/trunk/solr/core/src/java/org/apache/solr/cloud/ElectionContext.java Mon Sep
 3 00:37:46 2012
@@ -83,11 +83,10 @@ class ShardLeaderElectionContextBase ext
   @Override
   void runLeaderProcess(boolean weAreReplacement) throws KeeperException,
       InterruptedException, IOException {
-    // this pause is important (and seems to work also at 100ms to 1 second in
-    // many cases),
+    // this pause is important
     // but I don't know why yet :*( - it must come before this publish call
     // and can happen at the start of leader election process even
-    Thread.sleep(500);
+    Thread.sleep(100);
     
     zkClient.makePath(leaderPath, ZkStateReader.toJSON(leaderProps),
         CreateMode.EPHEMERAL, true);



Mime
View raw message