no need to check for shard if tis null, we know its not
This commit is contained in:
parent
c4646a2b55
commit
51277a9486
|
@ -219,12 +219,8 @@ 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);
|
||||
}
|
||||
}
|
||||
invokeListener(new ReduceSearchPhaseException(firstPhaseName(), "", e, buildShardFailures()));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue