Change snapshot status error to use generic SnapshotException (#24355)

Changes the snapshot status read exception from the (misleading)
IndexShardRestoreFailedException to the generic SnapshotException

Closes #24225
This commit is contained in:
Ali Beyad 2017-04-27 09:36:26 -04:00 committed by GitHub
parent 2fa1c9fff1
commit 2facc42a55
1 changed files with 1 additions and 1 deletions

View File

@ -954,7 +954,7 @@ public abstract class BlobStoreRepository extends AbstractLifecycleComponent imp
try {
return indexShardSnapshotFormat(version).read(blobContainer, snapshotId.getUUID());
} catch (IOException ex) {
throw new IndexShardRestoreFailedException(shardId, "failed to read shard snapshot file", ex);
throw new SnapshotException(metadata.name(), snapshotId, "failed to read shard snapshot file for " + shardId, ex);
}
}