Bug 47150 - ThreadGroup with a loop count of zero causes infinite loop
Summary: ThreadGroup with a loop count of zero causes infinite loop
Status: RESOLVED FIXED
Alias: None
Product: JMeter - Now in Github
Classification: Unclassified
Component: Main (show other bugs)
Version: 2.3.2
Hardware: All All
: P4 minor (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-04 13:38 UTC by Gregg
Modified: 2009-05-05 07:51 UTC (History)
0 users



Attachments
test plan demonstrating bug (4.76 KB, application/octet-stream)
2009-05-04 13:39 UTC, Gregg
Details
Proposed patch (532 bytes, patch)
2009-05-04 13:47 UTC, Gregg
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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