Skip to content

Apache Lucene open-source search software

drop to 100ms pause for now

Mark Robert Miller362d518c1980
diff --git a/solr/core/src/java/org/apache/solr/cloud/ElectionContext.java b/solr/core/src/java/org/apache/solr/cloud/ElectionContext.java
index a9fe2e9ddfe..954cd4c51b1 100644
--- a/solr/core/src/java/org/apache/solr/cloud/ElectionContext.java
+++ b/solr/core/src/java/org/apache/solr/cloud/ElectionContext.java
@@ -83,11 +83,10 @@ class ShardLeaderElectionContextBase extends ElectionContext {
@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);