SOLR-6651: Fix wrong timeout logged in waitForReplicasToComeUp

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1634057 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Shalin Shekhar Mangar 2014-10-24 13:56:51 +00:00
parent bd68541c0f
commit 13e8aa61fc
2 changed files with 7 additions and 3 deletions

View File

@ -363,6 +363,8 @@ Other Changes
* SOLR-6578: Update commons-io dependency to the latest 2.4 version * SOLR-6578: Update commons-io dependency to the latest 2.4 version
(Steve Rowe, Shawn Heisey) (Steve Rowe, Shawn Heisey)
* SOLR-6651: Fix wrong timeout logged in waitForReplicasToComeUp. (shalin)
================== 4.10.1 ================== ================== 4.10.1 ==================
Bug Fixes Bug Fixes

View File

@ -424,9 +424,11 @@ final class ShardLeaderElectionContext extends ShardLeaderElectionContextBase {
return; return;
} else { } else {
if (cnt % 40 == 0) { if (cnt % 40 == 0) {
log.info("Waiting until we see more replicas up for shard " + shardId + ": total=" log.info("Waiting until we see more replicas up for shard {}: total={}"
+ slices.getReplicasMap().size() + " found=" + found + " found={}" + found
+ " timeoutin=" + (timeoutAt - System.nanoTime() / (float)(10^9)) + "ms"); + " timeoutin={}ms",
shardId, slices.getReplicasMap().size(), found,
TimeUnit.MILLISECONDS.convert(timeoutAt - System.nanoTime(), TimeUnit.NANOSECONDS));
} }
} }