Skip to content

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
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ı <[email protected]>
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ı <[email protected]>
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