Bug 59391 - In Distributed mode, the client exits abnormally at the end of test
Summary: In Distributed mode, the client exits abnormally at the end of test
Status: RESOLVED FIXED
Alias: None
Product: JMeter - Now in Github
Classification: Unclassified
Component: Main (show other bugs)
Version: 2.13
Hardware: All All
: P2 normal (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-28 15:24 UTC by UbikLoadPack support
Modified: 2016-04-28 20:20 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description UbikLoadPack support 2016-04-28 15:24:53 UTC
We noticed the following issue :

    Run : jmeter-server -l jmeter-server.log
    Run : /jmeter -r -X -n -t /data/jmeter/re7-3.0.jmx -l /data/jmeter/re7/results-rc3-remote.csv


In 2.13, this has the impact of not calling:
    println("... end of run");
    checkForRemainingThreads();


In 3.0 this has the impact of not generating the Report if called with additional options:

>  -e -o /data/jmeter/re7/report-rc3-2


Issue is due to the thread.interrupt being called on RMI Reaper Thread.

IN 3.0:
https://github.com/apache/jmeter/blob/trunk/src/core/org/apache/jmeter/JMeter.java#L1127

It appears that t.interrupt() on RMI Reaper thread:

    https://github.com/apache/jmeter/blob/trunk/src/core/org/apache/jmeter/engine/ClientJMeterEngine.java#L171
Comment 1 UbikLoadPack support 2016-04-28 15:31:06 UTC
See this bug reported towards jmeter maven plugin:
https://github.com/jmeter-maven-plugin/jmeter-maven-plugin/issues/37

""Test has ended" is no longer present in the log file when jmeter interrupts the thead.

...."
Comment 2 Sebb 2016-04-28 15:34:08 UTC
Note: a workround is to generate the report once the run has finished, using a command of the form:

$ jmeter -g /data/jmeter/re7/results-rc3-remote.csv -o /data/jmeter/re7/report-rc3-2
Comment 3 UbikLoadPack support 2016-04-28 20:20:16 UTC
Author: pmouawad
Date: Thu Apr 28 20:18:51 2016
New Revision: 1741507

URL: http://svn.apache.org/viewvc?rev=1741507&view=rev
Log:
Bug 59391 - In Distributed mode, the client exits abnormally at the end of test
Bugzilla Id: 59391

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/JMeter.java
    jmeter/trunk/xdocs/changes.xml
Comment 4 The ASF infrastructure team 2022-09-24 20:38:04 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/3968