mirror of https://github.com/apache/lucene.git
SOLR-6235: Improved logging in RecoveryStrategy and fixed a mistake in ElectionContext logging that I had made earlier.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1610351 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
473e0189c6
commit
6069b78cc0
|
@ -354,8 +354,8 @@ final class ShardLeaderElectionContext extends ShardLeaderElectionContextBase {
|
|||
|
||||
String lirState = zkController.getLeaderInitiatedRecoveryState(coll, shardId, replicaCoreNodeName);
|
||||
if (ZkStateReader.DOWN.equals(lirState) || ZkStateReader.RECOVERY_FAILED.equals(lirState)) {
|
||||
log.info("After core={} coreNodeName={} was elected leader, it was found in state: "
|
||||
+ lirState + " and needing recovery.", coreName, coreNodeName);
|
||||
log.info("After core={} coreNodeName={} was elected leader, a replica coreNodeName={} was found in state: "
|
||||
+ lirState + " and needing recovery.", coreName, coreNodeName, replicaCoreNodeName);
|
||||
List<ZkCoreNodeProps> replicaProps =
|
||||
zkController.getZkStateReader().getReplicaProps(collection, shardId, coreNodeName);
|
||||
|
||||
|
|
|
@ -117,7 +117,7 @@ public class RecoveryStrategy extends Thread implements ClosableThread {
|
|||
} catch (NullPointerException e) {
|
||||
// okay
|
||||
}
|
||||
log.warn("Stopping recovery for zkNodeName=" + coreZkNodeName + "core=" + coreName);
|
||||
log.warn("Stopping recovery for core={} coreNodeName={}", coreName, coreZkNodeName);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue