no need to check for shard if tis null, we know its not

This commit is contained in:
kimchy 2010-12-30 13:12:08 +02:00
parent c4646a2b55
commit 51277a9486
1 changed files with 1 additions and 5 deletions

View File

@ -219,11 +219,7 @@ public abstract class TransportSearchTypeAction extends BaseAction<SearchRequest
moveToSecondPhase();
} catch (Exception e) {
if (logger.isDebugEnabled()) {
if (shard != null) {
logger.debug(shard.shortSummary() + ": Failed to execute [" + request + "] while moving to second phase", e);
} else {
logger.debug(shardIt.shardId() + ": Failed to execute [" + request + "] while moving to second phase", e);
}
logger.debug(shardIt.shardId() + ": Failed to execute [" + request + "] while moving to second phase", e);
}
invokeListener(new ReduceSearchPhaseException(firstPhaseName(), "", e, buildShardFailures()));
}