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
As far as I understand feign relies on org.apache.httpcomponents:httpcore:4.4.16 which is not ready for virtual threads. Upgrading to httpcore5 might be a solution.
The text was updated successfully, but these errors were encountered:
Can you please clarify what your expectations here are? Looking over the issue, I'm not sure this is a Feign issue but rather the use of virtual threads and Apache HTTP Components.
Feign already has support Apache HTTP Components 5.x through our feign-hc5 library. Have you tried using this module?
Steps to reproduce:
DependencyApplication
and thenConcurrencyDemoApplication
StuckApplicationTest
demo-service/application.yml
and setspring.threads.virtual.enabled: true
(by default it'sfalse
).ConcurrencyDemoApplication
StuckApplicationTest
againIf you now attach a profile (e.g. YourKit) you'll see there's potential deadlock with this stacktrace
When the application is run with
-XX:+EnableDynamicAgentLoading
the JMV shows pinned virtual threads:As far as I understand feign relies on
org.apache.httpcomponents:httpcore:4.4.16
which is not ready for virtual threads. Upgrading tohttpcore5
might be a solution.The text was updated successfully, but these errors were encountered: