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:
Shalin Shekhar Mangar 2014-07-14 07:46:59 +00:00
parent 473e0189c6
commit 6069b78cc0
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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);
}