lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From markrmil...@apache.org
Subject svn commit: r1380102 - in /lucene/dev/branches/branch_4x: ./ solr/ solr/core/ solr/core/src/java/org/apache/solr/cloud/ElectionContext.java
Date Mon, 03 Sep 2012 00:39:55 GMT
Author: markrmiller
Date: Mon Sep  3 00:39:54 2012
New Revision: 1380102

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

Modified:
    lucene/dev/branches/branch_4x/   (props changed)
    lucene/dev/branches/branch_4x/solr/   (props changed)
    lucene/dev/branches/branch_4x/solr/core/   (props changed)
    lucene/dev/branches/branch_4x/solr/core/src/java/org/apache/solr/cloud/ElectionContext.java

Modified: lucene/dev/branches/branch_4x/solr/core/src/java/org/apache/solr/cloud/ElectionContext.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/solr/core/src/java/org/apache/solr/cloud/ElectionContext.java?rev=1380102&r1=1380101&r2=1380102&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/solr/core/src/java/org/apache/solr/cloud/ElectionContext.java
(original)
+++ lucene/dev/branches/branch_4x/solr/core/src/java/org/apache/solr/cloud/ElectionContext.java
Mon Sep  3 00:39:54 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