mirror of https://github.com/apache/lucene.git
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:
parent
9b384bd232
commit
292a8d4c16
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue