boost a timeout

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1430290 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2013-01-08 14:10:36 +00:00
parent 9b384bd232
commit 292a8d4c16
1 changed files with 2 additions and 1 deletions

View File

@ -748,7 +748,8 @@ public final class ZkController {
// now wait until our currently cloud state contains the latest leader
String clusterStateLeader = zkStateReader.getLeaderUrl(collection,
shardId, timeoutms);
shardId, timeoutms * 2); // since we found it in zk, we are willing to
// wait a while to find it in state
int tries = 0;
while (!leaderUrl.equals(clusterStateLeader)) {
if (tries == 60) {