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

[RESTEASY-3280] Do not load the ThreadContext's from a service loader… #3396

Merged
merged 1 commit into from Jan 24, 2023

Conversation

jamezp
Copy link
Contributor

@jamezp jamezp commented Jan 24, 2023

… each time the contexts are required.

https://issues.redhat.com/browse/RESTEASY-3280

Upstream #3395

@jamezp jamezp merged commit b2f6374 into resteasy:5.0 Jan 24, 2023
@jamezp jamezp deleted the RESTEASY-3280-5.x branch February 2, 2023 23:49
}
ThreadContexts threadContexts = ResteasyProviderFactory.getInstance().getContextData(ThreadContexts.class);
if (threadContexts == null) {
threadContexts = new ThreadContexts();
Copy link
Contributor

Choose a reason for hiding this comment

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

Hi @jamezp . Did the customer say this fixed the issue? For us, we still see it going through the serviceloader for each request that flows through this. threadContexts always appears to be null. What am I missing?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@crankydillo No, it didn't end up fixing it, https://issues.redhat.com/browse/RESTEASY-3313. It cut down on it, but didn't fix it. I'm going to have to see if there is a better place to put it.

I'm currently trying to see if it's reasonable to rewrite the entire context and ResteasyProviderFactory stuff now as I think there are better ways to handle it.

Copy link
Contributor

Choose a reason for hiding this comment

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

As always, thanks for the fast-feedback! Apologies for not searching JIRA. I should have done that!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No worries. I was looking at it yesterday so I had the JIRA up already in a tab :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants