Bug 66237

Summary: Constant Throughput Timer : 0 TPS + shared algorithm + thread lifetime runs all Threads - 1
Product: JMeter - Now in Github Reporter: nathan88wise
Component: MainAssignee: JMeter issues mailing list <issues>
Status: NEW ---    
Severity: normal    
Priority: P2    
Version: 5.5   
Target Milestone: JMETER_5.5   
Hardware: PC   
OS: All   
Attachments: Example file where the bug occurs
Showing where Thread issue occurs
Image showing the issue

Description nathan88wise 2022-08-24 13:21:47 UTC
Created attachment 38373 [details]
Example file where the bug occurs

When I specify 0 for the "Target throughput (in sample per minute)" of a Constant Throughput Timer, use either shared algorithm - "all active threads (shared)" or "all active threads in current thread group (shared)" and have a Thread Lifetime specified - the Thread Group will run with <"Number of Threads" - 1> threads.

When using other algorithms in the Constant Throughput Timer, the test will instead stop as expected. Not sure why the shared algorithms should differ; I'm assuming this is a bug.
Comment 1 nathan88wise 2022-08-24 13:23:22 UTC
Created attachment 38374 [details]
Showing where Thread issue occurs
Comment 2 nathan88wise 2022-08-24 13:26:30 UTC
Also - just a few clarifications:

- This happens with other samplers. I tried with a JMS publisher and a Dummy Sampler (plugin)
- It still occurs when Loop Count isn't set to infinite. Seems to be as long as a Thread duration is provided
Comment 3 nathan88wise 2022-08-24 13:43:08 UTC
Created attachment 38375 [details]
Image showing the issue
Comment 4 The ASF infrastructure team 2022-09-24 20:38:23 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/5696