فهرست منبع

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
Ali Beyad 8 سال پیش
والد
کامیت
2facc42a55
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      core/src/main/java/org/elasticsearch/repositories/blobstore/BlobStoreRepository.java

+ 1 - 1
core/src/main/java/org/elasticsearch/repositories/blobstore/BlobStoreRepository.java

@@ -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);
             }
         }