Nest original exception while creating NoShardAvailableActionException
Closes #7756
This commit is contained in:
parent
20a0c68964
commit
25bce1db5d
|
@ -172,7 +172,7 @@ public abstract class TransportShardSingleOperationAction<Request extends Single
|
||||||
if (shardRouting == null) {
|
if (shardRouting == null) {
|
||||||
Throwable failure = lastFailure;
|
Throwable failure = lastFailure;
|
||||||
if (failure == null || isShardNotAvailableException(failure)) {
|
if (failure == null || isShardNotAvailableException(failure)) {
|
||||||
failure = new NoShardAvailableActionException(shardIt.shardId());
|
failure = new NoShardAvailableActionException(shardIt.shardId(), null, failure);
|
||||||
} else {
|
} else {
|
||||||
if (logger.isDebugEnabled()) {
|
if (logger.isDebugEnabled()) {
|
||||||
logger.debug("{}: failed to execute [{}]", failure, shardIt.shardId(), internalRequest.request());
|
logger.debug("{}: failed to execute [{}]", failure, shardIt.shardId(), internalRequest.request());
|
||||||
|
|
Loading…
Reference in New Issue