Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport 2.x] Make cacheEntry.getIndexInput() privileged when fetching blobs from remote snapshot #16582

Merged
merged 1 commit into from
Nov 6, 2024

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport 4213cc2 from #16544.

…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>
(cherry picked from commit 4213cc2)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Copy link
Contributor

github-actions bot commented Nov 6, 2024

❌ Gradle check result for 2a12cb8: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

Copy link
Contributor

github-actions bot commented Nov 6, 2024

✅ Gradle check result for 2a12cb8: SUCCESS

@reta reta merged commit f1b8799 into 2.x Nov 6, 2024
61 checks passed
@reta reta added the v2.19.0 Issues and PRs related to version 2.19.0 label Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v2.19.0 Issues and PRs related to version 2.19.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants