-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make cacheEntry.getIndexInput() privileged when fetching blobs from r…
…emote snapshot (#16544) * Make cacheEntry.getIndexInput() privileged when fetching blobs from remote store Signed-off-by: Finn Carroll <carrofin@amazon.com> * Rebase Signed-off-by: Finn Carroll <carrofin@amazon.com> * Spotless apply Signed-off-by: Finn Carroll <carrofin@amazon.com> * Clean up doPrivileged calls Signed-off-by: Finn Carroll <carrofin@amazon.com> * Comment Signed-off-by: Finn Carroll <carrofin@amazon.com> * Move fetchBlob to PrivilegedExceptionAction. Catch and unwrap IOException. Signed-off-by: Finn Carroll <carrofin@amazon.com> * Unused import Signed-off-by: Finn Carroll <carrofin@amazon.com> * Update server/src/main/java/org/opensearch/index/store/remote/utils/TransferManager.java Co-authored-by: Andriy Redko <drreta@gmail.com> Signed-off-by: Finn <finnegancarroll94@gmail.com> * Typo 'thrown'. Catch and throw unknown exception as IOException. Signed-off-by: Finn Carroll <carrofin@amazon.com> --------- Signed-off-by: Finn Carroll <carrofin@amazon.com> Signed-off-by: Finn <finnegancarroll94@gmail.com> Co-authored-by: Andriy Redko <drreta@gmail.com>
- Loading branch information
1 parent
e07499a
commit 4213cc2
Showing
2 changed files
with
40 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters