Skip to content

Commit

Permalink
Update server/src/main/java/org/opensearch/index/store/remote/utils/T…
Browse files Browse the repository at this point in the history
…ransferManager.java

Co-authored-by: Andriy Redko <[email protected]>
Signed-off-by: Finn <[email protected]>
  • Loading branch information
finnegancarroll and reta authored Nov 5, 2024
1 parent bcd13ff commit 090c36d
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,16 @@ public IndexInput fetchBlob(BlobFetchRequest blobFetchRequest) throws IOExceptio
}
});
} catch (PrivilegedActionException e) {
throw (IOException) e.getException();
final Exception cause = e.getException();
if (cause instanceof IOException) {
thrown (IOException) cause;
} else if (cause instanceof RuntimeException) {
thrown (RuntimeException) cause;
} else if (cause instanceof Error) {
thrown (Error) cause;
} else {
throw new IOException(cause);
}
}
}

Expand Down

0 comments on commit 090c36d

Please sign in to comment.