apache / jmeter

Apache JMeter open-source load testing tool for analyzing and measuring the performance of a variety of services
https://jmeter.apache.org/
Apache License 2.0
8.27k stars 2.09k forks source link

Critical Section Controller causes waiting threads not to stop #5441

Open asfimport opened 3 years ago

asfimport commented 3 years ago

JWilson (Bug 64954): I've noticed that for some test runs, when the test ends or I attempt to stop the test, I receive the message "Thread won't exit". After some troubleshooting, I noticed this was occurring when I have a thread waiting to enter a critical section controller.

Severity: major OS: All

asfimport commented 3 years ago

@FSchumacher (migrated from Bugzilla): Currently only samplers will get notified to stop. The controllers where considered to be short running things and left out originally.

Patches are welcome, as usual :) (But should probably be discussed on the dev mailing list before digging to deep into this)

I wondered, whether elements, that are potentially blocking, should be able to register themselves at the running JMeterThread/Engine to be notified when a stop is ordered.