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 d4f84f9899a..6d17de4cbd6 100644 --- a/solr/core/src/java/org/apache/solr/cloud/ElectionContext.java +++ b/solr/core/src/java/org/apache/solr/cloud/ElectionContext.java @@ -522,6 +522,9 @@ final class ShardLeaderElectionContext extends ShardLeaderElectionContextBase { long timeoutAt = System.nanoTime() + TimeUnit.NANOSECONDS.convert(timeout, TimeUnit.MILLISECONDS); while (!isClosed && !cc.isShutDown()) { if (System.nanoTime() > timeoutAt) { + log.warn("After waiting for {}ms, no other potential leader was found, {} try to become leader anyway (" + + "core_term:{}, highest_term:{})", + timeout, coreNodeName, zkShardTerms.getTerm(coreNodeName), zkShardTerms.getHighestTerm()); return true; } if (replicasWithHigherTermParticipated(zkShardTerms, coreNodeName)) {