forked from opensearch-project/OpenSearch
-
Notifications
You must be signed in to change notification settings - Fork 2
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 (opensearch-project#16544) * Make cacheEntry.getIndexInput() privileged when fetching blobs from remote store Signed-off-by: Finn Carroll <[email protected]> * Rebase Signed-off-by: Finn Carroll <[email protected]> * Spotless apply Signed-off-by: Finn Carroll <[email protected]> * Clean up doPrivileged calls Signed-off-by: Finn Carroll <[email protected]> * Comment Signed-off-by: Finn Carroll <[email protected]> * Move fetchBlob to PrivilegedExceptionAction. Catch and unwrap IOException. Signed-off-by: Finn Carroll <[email protected]> * Unused import Signed-off-by: Finn Carroll <[email protected]> * Update server/src/main/java/org/opensearch/index/store/remote/utils/TransferManager.java Co-authored-by: Andriy Redko <[email protected]> Signed-off-by: Finn <[email protected]> * Typo 'thrown'. Catch and throw unknown exception as IOException. Signed-off-by: Finn Carroll <[email protected]> --------- Signed-off-by: Finn Carroll <[email protected]> Signed-off-by: Finn <[email protected]> Co-authored-by: Andriy Redko <[email protected]>
- 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