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 authored Apr 27, 2017
1 parent 2fa1c9f commit 2facc42
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -954,7 +954,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 2facc42

Please sign in to comment.