mirror of https://github.com/apache/lucene.git
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:
parent
bd68541c0f
commit
13e8aa61fc
|
@ -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
|
||||||
|
|
|
@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue