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:
parent
2fa1c9fff1
commit
2facc42a55
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue