-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Fix java.security.AccessControlException during OpenSearch server shutdown cycle #17183
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
Conversation
server/src/main/resources/org/opensearch/bootstrap/security.policy
Outdated
Show resolved
Hide resolved
❕ Gradle check result for 7311a01: UNSTABLE Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #17183 +/- ##
============================================
- Coverage 72.36% 72.31% -0.05%
+ Complexity 65606 65594 -12
============================================
Files 5306 5306
Lines 304923 304941 +18
Branches 44256 44257 +1
============================================
- Hits 220665 220533 -132
- Misses 66151 66344 +193
+ Partials 18107 18064 -43 ☔ View full report in Codecov by Sentry. |
❌ Gradle check result for 13b0127: 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? |
…tdown cycle Signed-off-by: Andriy Redko <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems reasonable to me.
Obviously, we'll want to keep an eye on uses of PrivilegedOpenSearchThreadFactory
as long as we're relying on JSM policies.
Thanks @msfroh , I've sent the fix upstream as well (netty/netty#14743) |
…tdown cycle (#17183) Signed-off-by: Andriy Redko <[email protected]> (cherry picked from commit b9900ee) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
The backport to
To backport manually, run these commands in your terminal: # Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/OpenSearch/backport-1.3 1.3
# Navigate to the new working tree
pushd ../.worktrees/OpenSearch/backport-1.3
# Create a new branch
git switch --create backport/backport-17183-to-1.3
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 b9900ee5c36dd73925babfa4d29c8d085f48b962
# Push it to GitHub
git push --set-upstream origin backport/backport-17183-to-1.3
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/OpenSearch/backport-1.3 Then, create a pull request where the |
The backport to
To backport manually, run these commands in your terminal: # Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/OpenSearch/backport-1.x 1.x
# Navigate to the new working tree
pushd ../.worktrees/OpenSearch/backport-1.x
# Create a new branch
git switch --create backport/backport-17183-to-1.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 b9900ee5c36dd73925babfa4d29c8d085f48b962
# Push it to GitHub
git push --set-upstream origin backport/backport-17183-to-1.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/OpenSearch/backport-1.x Then, create a pull request where the |
…tdown cycle (#17183) (#17189) (cherry picked from commit b9900ee) Signed-off-by: Andriy Redko <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…tdown cycle (opensearch-project#17183) Signed-off-by: Andriy Redko <[email protected]> (cherry picked from commit b9900ee)
…tdown cycle (opensearch-project#17183) Signed-off-by: Andriy Redko <[email protected]> (cherry picked from commit b9900ee)
…tdown cycle (#17183) (#17205) Signed-off-by: Andriy Redko <[email protected]> (cherry picked from commit b9900ee)
…tdown cycle (#17183) (#17204) Signed-off-by: Andriy Redko <[email protected]> (cherry picked from commit b9900ee)
Description
So far I have only seen it during the server shutdown procedure:
Related Issues
Related to #17041
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.