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
Is your feature request related to a problem? Please describe
I am writing a server which would run on virtual threads and i am also using lettuce sync api's in my app. On a quick search i can see there are usages of synchronized in the code ( check here ), I am worried that these usages can lead to platform thread pinning especially the usages in MasterReplicaConnectionProvider.java, I am not sure about the fact if platform thread would pin, as i am not aware if the methods using synchronized would run on eventloop or the virtual thread in some case, so please correct me if I am wrong here.
In case these usages are potential cause for thread pinning, it would be great if we can remove those usages and make library virtual thread compatible.
Feature Request
Is your feature request related to a problem? Please describe
I am writing a server which would run on virtual threads and i am also using lettuce sync api's in my app. On a quick search i can see there are usages of
synchronized
in the code ( check here ), I am worried that these usages can lead to platform thread pinning especially the usages inMasterReplicaConnectionProvider.java
, I am not sure about the fact if platform thread would pin, as i am not aware if the methods usingsynchronized
would run on eventloop or the virtual thread in some case, so please correct me if I am wrong here.In case these usages are potential cause for thread pinning, it would be great if we can remove those usages and make library virtual thread compatible.
Describe the solution you'd like
Replace
synchronized
withReentrantLock
as done in spring-projects/spring-data-redis#2690 as well.The text was updated successfully, but these errors were encountered: