lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sha...@apache.org
Subject [2/4] lucene-solr:jira/solr-12607: SOLR-12607: Log shard name in addition to the node for which replica is being created. This is useful for debugging shard split and migrate failures where many replicas belonging to different shards may be created.
Date Tue, 31 Jul 2018 08:17:18 GMT
SOLR-12607: Log shard name in addition to the node for which replica is being created. This
is useful for debugging shard split and migrate failures where many replicas belonging to
different shards may be created.


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/fbd4be72
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/fbd4be72
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/fbd4be72

Branch: refs/heads/jira/solr-12607
Commit: fbd4be72b927362c87980ee6f618b6c61228c144
Parents: d729c24
Author: Shalin Shekhar Mangar <shalin@apache.org>
Authored: Tue Jul 31 12:52:16 2018 +0530
Committer: Shalin Shekhar Mangar <shalin@apache.org>
Committed: Tue Jul 31 12:52:16 2018 +0530

----------------------------------------------------------------------
 .../java/org/apache/solr/cloud/api/collections/AddReplicaCmd.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/fbd4be72/solr/core/src/java/org/apache/solr/cloud/api/collections/AddReplicaCmd.java
----------------------------------------------------------------------
diff --git a/solr/core/src/java/org/apache/solr/cloud/api/collections/AddReplicaCmd.java b/solr/core/src/java/org/apache/solr/cloud/api/collections/AddReplicaCmd.java
index 0feeec9..c9dbaec 100644
--- a/solr/core/src/java/org/apache/solr/cloud/api/collections/AddReplicaCmd.java
+++ b/solr/core/src/java/org/apache/solr/cloud/api/collections/AddReplicaCmd.java
@@ -278,7 +278,7 @@ public class AddReplicaCmd implements OverseerCollectionMessageHandler.Cmd
{
             cloudManager).get(0).nodeName;// TODO: use replica type in this logic too
       }
     }
-    log.info("Node Identified {} for creating new replica", node);
+    log.info("Node Identified {} for creating new replica of shard {}", node, shard);
 
     if (!clusterState.liveNodesContain(node)) {
       throw new SolrException(SolrException.ErrorCode.BAD_REQUEST, "Node: " + node + " is
not live");


Mime
View raw message