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

Only deactivate request context if it was inactive before migrating it #3813

Merged
merged 5 commits into from
Jan 20, 2022

Conversation

spericas
Copy link
Member

Do not eagerly restore a migrated request context in new thread after calling the resource method. Jersey may still need to have the context active for allocation of providers such as writer interceptors. Instead, request context state will be overwritten simply next time the thread is reused and another context migrated. See issue #3810.

… calling the resource method. Jersey may still need to have the context active for allocation of providers such as writer interceptors. Instead, request context state will be overwritten simply next time the thread is reused and another context migrated.

Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>
@spericas spericas added this to the 2.4.2 milestone Jan 18, 2022
@spericas spericas self-assigned this Jan 18, 2022
Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>
…s inactive. New interceptor in test.

Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>
@spericas spericas changed the title WIP: Preserve migrated request context for duration of thread Only deactivate request context if it was inactive before migrating it Jan 19, 2022
Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>
@spericas spericas requested a review from tjquinno January 19, 2022 16:00
tjquinno
tjquinno previously approved these changes Jan 19, 2022
Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>
@spericas spericas merged commit 3079b00 into helidon-io:helidon-2.x Jan 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants