Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
thread rescue & ensure behaviour #5669
I'd like to raise awareness about some findings I did in different behaviours of threads
In a nutshell, embedded thread with their main blocks wrapped in a
I created an investigation issue in logstash elastic/logstash#10612 about this, let me know if you'd like me to bring it all here if this is deemed worthy of more investigation and followup over here.
nice to see 9.2 improve over 9.1 ... we did some thread (status) related fixes around that in 9.2.6
also to be noted, this likely does not matter at all here since you demonstrated the diff without explicit locking, JRuby does not allow thread interrupts (from mutex-es) compared to MRI esp. due LS: #4261
@colinsurprenant The big question for me is whether the CRuby behavior is expected. JRuby is at least consistent in both cases, though different than what CRuby does.
I believe part of the problem here is the scheduling of the threads. If the thread errors out on its own before calling join, and
Basically I think we have a race between