As part of issue #11700, I am trying to get all failing tests to run & pass on JRuby. I have solved some issues & got almost all tests green. but there is this async stream test which I have trouble debugging. to run this, just copy-paste following commands, assuming you are using rvm.
This test hangs on ActionController::Live:Response. My guess, its due the fact MRI has GIL/GVL & JRuby is truly multi-threaded. so looking for for some assistance on debugging this issue or general advice on how to approach threading issues. so we could get this code to work correctly on JRuby. Thanks
PS: Its possible that if you run this test, it just passes fine. in which case, run is multiple times until you get a failure. This random behaviour is what makes debugging threading issues hard.