SOLR-5509: better debug logging

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1546186 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2013-11-27 20:40:01 +00:00
parent 83da40be81
commit 2939fce489
1 changed files with 10 additions and 0 deletions

View File

@ -579,6 +579,9 @@ public class DistributedUpdateProcessor extends UpdateRequestProcessor {
if (isLeader || isSubShardLeader) {
params.set(DISTRIB_FROM, ZkCoreNodeProps.getCoreUrl(
zkController.getBaseUrl(), req.getCore().getName()));
} else if (log.isDebugEnabled()) {
params.set(DISTRIB_FROM, ZkCoreNodeProps.getCoreUrl(
zkController.getBaseUrl(), req.getCore().getName()));
}
cmdDistrib.distribAdd(cmd, nodes, params);
@ -1008,6 +1011,9 @@ public class DistributedUpdateProcessor extends UpdateRequestProcessor {
if (isLeader || isSubShardLeader) {
params.set(DISTRIB_FROM, ZkCoreNodeProps.getCoreUrl(
zkController.getBaseUrl(), req.getCore().getName()));
} else if (log.isDebugEnabled()) {
params.set(DISTRIB_FROM, ZkCoreNodeProps.getCoreUrl(
zkController.getBaseUrl(), req.getCore().getName()));
}
cmdDistrib.distribDelete(cmd, nodes, params);
}
@ -1069,6 +1075,10 @@ public class DistributedUpdateProcessor extends UpdateRequestProcessor {
ModifiableSolrParams outParams = new ModifiableSolrParams(filterParams(req.getParams()));
outParams.set(DISTRIB_UPDATE_PARAM, DistribPhase.TOLEADER.toString());
if (log.isDebugEnabled()) {
outParams.set(DISTRIB_FROM, ZkCoreNodeProps.getCoreUrl(
zkController.getBaseUrl(), req.getCore().getName()));
}
SolrParams params = req.getParams();
String route = params.get(ShardParams._ROUTE_);