> I think there is a behavioural change related to this commit:

> it seems to me we can end up losing
SampleResults

We are stopping the test, and I doubt we can guarantee we will record all
events, including those that happen exactly at the moment of stopping the
test.

The test case I added shows that "interrupted" event is generated. If
BackendListener loses events, it might be an issue in BackendListener code.

---

The change was a bug fix.
Before the fix it was not possible to terminate (e.g. stop) a test if http
sampler was waiting the response from server (e.g. if server was stuck)

Note, that OMTG was already using java thread interrupt previously, and now
the key change I made was **jmeter** thread interrupt (jmeterThread has its
own interrupt method).

It would be great if you could file an issue that describes the regression,
however, if people need to wait some time at the end of the test, they can
use `pause(2 min)`, so OMTG will wait for 2 min before interrupting
samplers.

We probably need something like `await_completion(5 min)` which would wait
till all threads to complete 5 min maximum, and then interrupt them.


Vladimir

-- 
Vladimir

Reply via email to