no need to check for shard if tis null, we know its not
This commit is contained in:
parent
c4646a2b55
commit
51277a9486
|
@ -219,11 +219,7 @@ public abstract class TransportSearchTypeAction extends BaseAction<SearchRequest
|
||||||
moveToSecondPhase();
|
moveToSecondPhase();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
if (logger.isDebugEnabled()) {
|
if (logger.isDebugEnabled()) {
|
||||||
if (shard != null) {
|
logger.debug(shardIt.shardId() + ": Failed to execute [" + request + "] while moving to second phase", e);
|
||||||
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()));
|
invokeListener(new ReduceSearchPhaseException(firstPhaseName(), "", e, buildShardFailures()));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue