ruthst00 commented on code in PR #6770:
URL: https://github.com/apache/jmeter/pull/6770#discussion_r4106386983
##########
src/core/src/main/java/org/apache/jmeter/threads/JMeterThread.java:
##########
@@ -526,6 +526,12 @@ private SampleResult processSampler(Sampler current,
Sampler parent, JMeterConte
&& transactionResult == null
&& transactionSampler != null
&& transactionPack != null) {
+ // Thread was stopped mid-transaction (e.g. during ramp-down).
Review Comment:
Fixed
##########
src/core/src/main/java/org/apache/jmeter/threads/JMeterThread.java:
##########
@@ -526,6 +526,12 @@ private SampleResult processSampler(Sampler current,
Sampler parent, JMeterConte
&& transactionResult == null
&& transactionSampler != null
&& transactionPack != null) {
+ // Thread was stopped mid-transaction (e.g. during ramp-down).
+ // Ensure setTransactionDone() is called so that elapsed time and
idle time
+ // are correctly computed (see GitHub issue #6496 / Bug 55816).
+ if (!transactionSampler.isTransactionDone()) {
Review Comment:
Fixed
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]