Skip to content

Commit

Permalink
Change snapshot status error to use generic SnapshotException (#24355)
Browse files Browse the repository at this point in the history
Changes the snapshot status read exception from the (misleading)
IndexShardRestoreFailedException to the generic SnapshotException

Closes #24225
  • Loading branch information
Ali Beyad committed Apr 27, 2017
1 parent fbc74ff commit 5e31b42
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1111,7 +1111,7 @@ public BlobStoreIndexShardSnapshot loadSnapshot() {
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);
}
}

Expand Down

0 comments on commit 5e31b42

Please sign in to comment.