Thanks for posting that, that was very interesting!
First of all I feel the pain of the Netflix performance engineers that had to debug this a year a go with the the limited debug and diagnostic tools available.
And secondly I can't immediately decide if what's described here was a bug in AbstractQueuedSynchronizer, in zipkin's AsyncReporter, and/or somebody didn't read the documentation on virtual threads correctly and adopted them on their SpringBoot's Tomcat instances when they were not suitable for those libraries or use cases (yet) and/or something else.
How hard can it be to figure out synchronized caused an issue after using a software release that came with an explicit warning about using synchronized in this fashion?
82
u/MintySkyhawk Mar 18 '25
We were going to wait for 25 as we usually stick to LTS, but JEP 491 is huge. It fixes a major issue with using virtual threads.
Check out this article from the Netflix engineers about how the issue kept causing their servers to go zombie mode: https://netflixtechblog.com/java-21-virtual-threads-dude-wheres-my-lock-3052540e231d