Ensure that transient ThreadContext headers with propagators survive restore#20854
Conversation
Signed-off-by: Deepti24 <chauhan.deepti24@gmail.com>
PR Reviewer Guide 🔍(Review updated until commit 87e71bf)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to 87e71bf Explore these optional code suggestions:
Previous suggestionsSuggestions up to commit b2d5b5e
Suggestions up to commit d86ab97
Suggestions up to commit 458b367
Suggestions up to commit 9a65ec5
Suggestions up to commit 06588ac
|
|
❌ Gradle check result for b7f9b51: 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? |
server/src/main/java/org/opensearch/common/util/concurrent/ThreadContext.java
Outdated
Show resolved
Hide resolved
|
@Deepti24 the changes lgtm. left one small comment around naming. |
|
please fix the precommit failures |
Signed-off-by: Deepti24 <chauhan.deepti24@gmail.com>
|
Persistent review updated to latest commit bc5e243 |
Signed-off-by: Deepti24 <chauhan.deepti24@gmail.com>
|
Persistent review updated to latest commit edc807d |
Signed-off-by: Deepti24 <chauhan.deepti24@gmail.com>
|
Persistent review updated to latest commit f47cebe |
|
❌ Gradle check result for f47cebe: 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? |
server/src/main/java/org/opensearch/common/util/concurrent/ThreadContext.java
Outdated
Show resolved
Hide resolved
|
❌ Gradle check result for f47cebe: 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? |
Signed-off-by: Deepti24 <chauhan.deepti24@gmail.com>
|
Persistent review updated to latest commit b58616f |
|
❌ Gradle check result for b58616f: 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? |
Signed-off-by: Deepti24 <chauhan.deepti24@gmail.com>
Signed-off-by: Deepti24 <chauhan.deepti24@gmail.com>
Signed-off-by: Deepti24 <chauhan.deepti24@gmail.com>
|
Persistent review updated to latest commit 458b367 |
|
❌ Gradle check result for 458b367: 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? |
Signed-off-by: Deepti Chauhan <dchauhan3@atlassian.com>
|
Persistent review updated to latest commit d86ab97 |
|
❌ Gradle check result for d86ab97: 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? |
|
@Deepti24 please fix the spotless errors |
|
@cwperks I wanted to fix DCO history (I signed using personal id but was supposed to do with corporate id) along with this, is it okay if I run below commands for the same ? git reset --soft main Do let me know if it is not recommended Have fixed checkstyle |
Signed-off-by: Deepti Chauhan <dchauhan3@atlassian.com>
|
Persistent review updated to latest commit b2d5b5e |
|
@Deepti24 yes you can do that. I also have a mechanism on my side to manually set DCO to pass as long as at least one of the commits is signed. PRs get squashed on merge so a maintainer can assure that the signature is kept in the squashed commit message. I think the requirement is that for all unique contributors on a PR, each contributor needs to sign at least one of their commits. |
@cwperks Sure then please use the DCO corresponding to Signed-off-by: Deepti Chauhan when you merge ACCOUNT: Thanks !! |
|
❌ Gradle check result for b2d5b5e: 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? |
|
❌ Gradle check result for b2d5b5e: 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? |
|
❌ Gradle check result for b2d5b5e: 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? |
|
❌ Gradle check result for b2d5b5e: 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? |
|
Persistent review updated to latest commit 87e71bf |
|
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-2.19 2.19
# Navigate to the new working tree
pushd ../.worktrees/OpenSearch/backport-2.19
# Create a new branch
git switch --create backport/backport-20854-to-2.19
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 e39a49606a15262366af703035a52d6ca670627c
# Push it to GitHub
git push --set-upstream origin backport/backport-20854-to-2.19
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/OpenSearch/backport-2.19Then, create a pull request where the |

Description
This is to fix issue mentioned in this comment: #20822 (comment)
Issue details
Explaining why do we have a SpanReference with null span id as seen in screenshot in above comment (Fix in class ThreadContextBasedTracerContextStorage)
Related Issues
Resolves #[Issue number to be closed when this PR is merged]
(opensearch-project/security#5990)
cwperks#345
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.