Bug 30110

Summary: deadlock of stopTest process
Product: JMeter - Now in Github Reporter: Masashi Takeichi <takeichim>
Component: MainAssignee: JMeter issues mailing list <issues>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: Nightly (Please specify date)   
Target Milestone: ---   
Hardware: All   
OS: All   

Description Masashi Takeichi 2004-07-15 03:19:12 UTC
I set up ThreadGroup as follows.
  "Action to be taken after a Sampler error" : Stop Test 

When a same error occurred at some threads at once,
my test was stopped.
But it took a long time to stop all the threads.
It was about 50 seconds, using 10 threads.


I saw JMeterThread and StandardJMeterEngine codes.
When 'onErrorStopTest' variable in JMeterThread is true,
the thread itself at which a error occurs, tries to stop all the other threads.
So when some threads throw errors at once, deadlock occurs.
And deadlock is not solved until timeout. 

The task to stop all the threads should be done by another thread.

Thank you.
Comment 1 Sebb 2004-10-12 23:47:38 UTC
Thanks for the report; fixed in CVS 2.0 branch.
Comment 2 The ASF infrastructure team 2022-09-24 20:37:33 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/1408