diff --git a/server/src/main/java/org/elasticsearch/repositories/blobstore/BlobStoreRepository.java b/server/src/main/java/org/elasticsearch/repositories/blobstore/BlobStoreRepository.java index 2cd8fca47df..520b4d7a5be 100644 --- a/server/src/main/java/org/elasticsearch/repositories/blobstore/BlobStoreRepository.java +++ b/server/src/main/java/org/elasticsearch/repositories/blobstore/BlobStoreRepository.java @@ -786,7 +786,11 @@ public abstract class BlobStoreRepository extends AbstractLifecycleComponent imp @Override public IndexMetaData getSnapshotIndexMetaData(final SnapshotId snapshotId, final IndexId index) throws IOException { - return indexMetaDataFormat.read(indexContainer(index), snapshotId.getUUID()); + try { + return indexMetaDataFormat.read(indexContainer(index), snapshotId.getUUID()); + } catch (NoSuchFileException e) { + throw new SnapshotMissingException(metadata.name(), snapshotId, e); + } } private BlobPath indicesPath() {