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

Restore thread contexts in reversed order #10445

Merged

Conversation

lgathy
Copy link
Contributor

@lgathy lgathy commented Feb 2, 2024

When multiple ThreadPropagatedContextElement are present in a PropagatedContext, restoring thread states happen in the same order as they were captured, whereas it should happen in a reversed order. Otherwise, incorrect thread state might be restored, as the added test cases demonstrate this behavior.

@dstepanov dstepanov added this to the 4.3.4 milestone Feb 2, 2024
@dstepanov dstepanov added the type: bug Something isn't working label Feb 2, 2024
@dstepanov dstepanov merged commit c46a8cc into micronaut-projects:4.3.x Feb 2, 2024
@dstepanov
Copy link
Contributor

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants