You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mp911de
changed the title
[Virtual Threads] Thread Pinning in Repositories#cacheRepositoryFactory()
Thread Pinning in Repositories#cacheRepositoryFactory()Jul 26, 2024
Thanks for the report. We don't really have a need to synchronize the method as it is invoked in the constructor without involving additional concurrency. We can simply remove synchronized without side effects.
We now no longer declare cacheRepositoryFactory as synchronized to avoid locking. Additionally, simplify the flow and reuse computed values as much as possible.
Closes#3126
We now no longer declare cacheRepositoryFactory as synchronized to avoid locking. Additionally, simplify the flow and reuse computed values as much as possible.
Closes#3126
There is a rare thread pinning happens on the first Spring MVC API request to the app.
It traces here:
spring-data-commons/src/main/java/org/springframework/data/repository/support/Repositories.java
Lines 103 to 105 in 3dd3932
The text was updated successfully, but these errors were encountered: