[Backport 2.x] Add ThreadContextPermission for stashAndMergeHeaders and stashWithOrigin#15049
Merged
reta merged 2 commits intoopensearch-project:2.xfrom Jul 31, 2024
Merged
Conversation
…gin (opensearch-project#15039) * Add ThreadContextPermission for stashAndMergeHeaders and stashWithOrigin Signed-off-by: Craig Perkins <cwperx@amazon.com> * Add to CHANGELOG Signed-off-by: Craig Perkins <cwperx@amazon.com> * Use ThreadContextAccess Signed-off-by: Craig Perkins <cwperx@amazon.com> --------- Signed-off-by: Craig Perkins <cwperx@amazon.com>
Signed-off-by: Craig Perkins <cwperx@amazon.com>
This was referenced Jul 31, 2024
Closed
reta
approved these changes
Jul 31, 2024
Contributor
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 2.x #15049 +/- ##
============================================
+ Coverage 71.48% 71.59% +0.10%
- Complexity 62677 62723 +46
============================================
Files 5123 5125 +2
Lines 294480 294558 +78
Branches 42912 42923 +11
============================================
+ Hits 210518 210883 +365
+ Misses 66286 65940 -346
- Partials 17676 17735 +59 ☔ View full report in Codecov by Sentry. |
reta
reviewed
Jul 31, 2024
server/src/main/java/org/opensearch/common/util/concurrent/ThreadContext.java
Show resolved
Hide resolved
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Manual backport of #15039 to 2.x that includes a deprecationLogger message to print out to unauthorized callers that access will be removed in next major version.