-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Labels
area/dist/quarkuskind/bugCategorizes a PR related to a bugCategorizes a PR related to a bugpriority/importantMust be worked on very soonMust be worked on very soonrelease/26.4.4release/26.5.0team/sre
Description
Before reporting an issue
- I have read and understood the above terms for submitting issues, and I understand that my issue may be closed without action if I do not follow them.
Area
dist/quarkus
Describe the bug
When Keycloak performs the Liquibase upgrade, it misses to clear a thread local context, so the session is never garbage collected.
As this is an effort to find all those places, this is a housekeeping task. It will reduce the memory usage of Keycloak slightly in this place, and to a larger extent in other places.
Version
main
Regression
- The issue is a regression
Expected behavior
Thread locals should be removed when no longer used.
Actual behavior
The thread local is kept
How to Reproduce?
Start up Keycloak, create a memory dump, and search for QuarkusKeycloakSession
Anything else?
I'll create a PR.
Metadata
Metadata
Assignees
Labels
area/dist/quarkuskind/bugCategorizes a PR related to a bugCategorizes a PR related to a bugpriority/importantMust be worked on very soonMust be worked on very soonrelease/26.4.4release/26.5.0team/sre