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

Fix key removal issues in Thread Context #3050

Merged
merged 7 commits into from
Oct 10, 2024
Merged

Fix key removal issues in Thread Context #3050

merged 7 commits into from
Oct 10, 2024

Conversation

vy
Copy link
Member

@vy vy commented Oct 2, 2024

Fixes #2946.

@vy vy added the api Affects the public API label Oct 2, 2024
@vy vy added this to the 2.25.0 milestone Oct 2, 2024
@vy vy requested a review from ppkarwasz October 2, 2024 12:44
@vy vy self-assigned this Oct 2, 2024
Copy link
Contributor

@ppkarwasz ppkarwasz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, 💯

There is certainly a bug in copyAndRemoveAll implementation (although I don't seem to be able to pinpoint it), but the user-supplied test cases trigger it by using the ThreadContext API incorrectly (IMHO).

Can we trigger the bug with a different unit test?

@vy vy merged commit 1e1d9b7 into 2.x Oct 10, 2024
8 checks passed
@vy vy deleted the fix/2.x/MDC-remove branch October 10, 2024 11:46
ppkarwasz added a commit that referenced this pull request Nov 15, 2024
Co-authored-by: Piotr P. Karwasz <piotr.github@karwasz.org>
ppkarwasz added a commit that referenced this pull request Nov 18, 2024
This backports #3050 to the 2.24.x branch.

Co-authored-by: Volkan Yazıcı <volkan@yazi.ci>
ppkarwasz added a commit that referenced this pull request Nov 21, 2024
This backports #3050 to the 2.24.x branch.

Co-authored-by: Volkan Yazıcı <volkan@yazi.ci>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Affects the public API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(Closeable)ThreadContext putAll removes entire context
4 participants