Bug 47150

Summary: ThreadGroup with a loop count of zero causes infinite loop
Product: JMeter - Now in Github Reporter: Gregg <kagbusiness>
Component: MainAssignee: JMeter issues mailing list <issues>
Status: RESOLVED FIXED    
Severity: minor    
Priority: P4    
Version: 2.3.2   
Target Milestone: ---   
Hardware: All   
OS: All   
Attachments: test plan demonstrating bug
Proposed patch

Description Gregg 2009-05-04 13:38:42 UTC
Entering a loop count of zero for a ThreadGroup causes an infinite loop (without actually running any of that ThreadGroup's children).

Steps to reproduce: Run the attached test plan in JMeter

Actual results: JMeter goes into an infinite loop trying to run the ThreadGroup but not actually running any of that ThreadGroup's children.

Expected results: The behavior I would expect, and that the documentation seems to imply, is for the ThreadGroup to not be run at all (i.e. threads running that ThreadGroup would terminate almost immediately).

This bug doesn't occur in 2.2 but does in 2.3.
Comment 1 Gregg 2009-05-04 13:39:33 UTC
Created attachment 23607 [details]
test plan demonstrating bug
Comment 2 Gregg 2009-05-04 13:47:05 UTC
Created attachment 23608 [details]
Proposed patch
Comment 3 Sebb 2009-05-05 07:51:15 UTC
Thanks very much for the report and the patch.

Applied to SVN in:

URL: http://svn.apache.org/viewvc?rev=771755&view=rev
Log:
Bug 47150 - ThreadGroup with a loop count of zero causes infinite loop
Comment 4 The ASF infrastructure team 2022-09-24 20:37:43 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/2232