Change snapshot status error to use generic SnapshotException
Changes the snapshot status read exception from the (misleading)
IndexShardRestoreFailedException to the generic SnapshotException
Closes
@@ -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);
}
}
