Bug 58728 - Drop old behavioural properties

Bugzilla Id: 58728

git-svn-id: https://svn.apache.org/repos/asf/jmeter/trunk@1720685 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Philippe Mouawad 2015-12-17 22:28:07 +00:00
parent fe2f082f70
commit cbdd5614d3
4 changed files with 9 additions and 54 deletions

View File

@ -1030,22 +1030,11 @@ beanshell.server.file=../extras/startup.bsh
# If you want to use Nashorn on JDK8, set this property to false
#javascript.use_rhino=true
# (2.2.1) JMeterThread behaviour has changed so that PostProcessors are run in forward order
# (as they appear in the test plan) rather than reverse order as previously.
# Uncomment the following line to revert to the original behaviour
#jmeterthread.reversePostProcessors=true
# (2.14) JMeterThread behaviour has changed: it now implements sampleStarted/sampleStopped
# This is necessary for the test element Sample Timeout
# Uncomment the following line to revert to the original behaviour (Sample Timeout will no longer work)
#JMeterThread.sampleStarted=false
# (2.2) StandardJMeterEngine behaviour has been changed to notify the listeners after
# the running version is enabled. This is so they can access variables.
# In case this causes problems, the previous behaviour can be restored by uncommenting
# the following line.
#jmeterengine.startlistenerslater=false
# Number of milliseconds to wait for a thread to stop
#jmeterengine.threadstop.wait=5000

View File

@ -32,8 +32,8 @@ import org.apache.jmeter.samplers.SampleEvent;
import org.apache.jmeter.testbeans.TestBean;
import org.apache.jmeter.testbeans.TestBeanHelper;
import org.apache.jmeter.testelement.TestElement;
import org.apache.jmeter.testelement.TestStateListener;
import org.apache.jmeter.testelement.TestPlan;
import org.apache.jmeter.testelement.TestStateListener;
import org.apache.jmeter.threads.AbstractThreadGroup;
import org.apache.jmeter.threads.JMeterContextService;
import org.apache.jmeter.threads.ListenerNotifier;
@ -59,16 +59,6 @@ public class StandardJMeterEngine implements JMeterEngine, Runnable {
private static final boolean exitAfterTest =
JMeterUtils.getPropDefault("server.exitaftertest", false); // $NON-NLS-1$
private static final boolean startListenersLater =
JMeterUtils.getPropDefault("jmeterengine.startlistenerslater", true); // $NON-NLS-1$
static {
if (startListenersLater){
log.info("Listeners will be started after enabling running version");
log.info("To revert to the earlier behaviour, define jmeterengine.startlistenerslater=false");
}
}
// Allow engine and threads to be stopped from outside a thread
// e.g. from beanshell server
// Assumes that there is only one instance of the engine
@ -331,9 +321,8 @@ public class StandardJMeterEngine implements JMeterEngine, Runnable {
testListeners.getSearchResults().addAll(testList);
testList.clear(); // no longer needed
if (!startListenersLater ) { notifyTestListenersOfStart(testListeners); }
test.traverse(new TurnElementsOn());
if (startListenersLater) { notifyTestListenersOfStart(testListeners); }
notifyTestListenersOfStart(testListeners);
List<?> testLevelElements = new LinkedList<>(test.list(test.getArray()[0]));
removeThreadGroups(testLevelElements);

View File

@ -21,7 +21,6 @@ package org.apache.jmeter.threads;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.ListIterator;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.ReentrantLock;
@ -227,21 +226,6 @@ public class JMeterThread implements Runnable, Interruptible {
this.threadName = threadName;
}
/*
* See below for reason for this change. Just in case this causes problems,
* allow the change to be backed out
*/
private static final boolean reversePostProcessors =
JMeterUtils.getPropDefault("jmeterthread.reversePostProcessors", false); // $NON-NLS-1$
static {
if (reversePostProcessors) {
log.info("Running PostProcessors in reverse order");
} else {
log.info("Running PostProcessors in forward order");
}
}
@Override
public void run() {
// threadContext is not thread-safe, so keep within thread
@ -777,19 +761,9 @@ public class JMeterThread implements Runnable, Interruptible {
@SuppressWarnings("deprecation") // OK to call TestBeanHelper.prepare()
private void runPostProcessors(List<PostProcessor> extractors) {
ListIterator<PostProcessor> iter;
if (reversePostProcessors) {// Original (rather odd) behaviour
iter = extractors.listIterator(extractors.size());// start at the end
while (iter.hasPrevious()) {
PostProcessor ex = iter.previous();
TestBeanHelper.prepare((TestElement) ex);
ex.process();
}
} else {
for (PostProcessor ex : extractors) {
TestBeanHelper.prepare((TestElement) ex);
ex.process();
}
for (PostProcessor ex : extractors) {
TestBeanHelper.prepare((TestElement) ex);
ex.process();
}
}

View File

@ -79,7 +79,9 @@ Summary
</li>
<li>Since version 2.14, JMS Publisher will reload contents of file if Message source is "From File" and the ""Filename" field changes (through variables usage for example)</li>
<li>org.apache.jmeter.gui.util.ButtonPanel has been removed, if you use it in your 3rd party plugin or custom development ensure you update your code. See <bugzill>58687</bugzill></li>
<li>Property <code>jmeterthread.startearlier parameter</code> has been removed. See <bugzilla>58726</bugzilla></li>
<li>Property <code>jmeterthread.startearlier</code> has been removed. See <bugzilla>58726</bugzilla></li>
<li>Property <code>jmeterengine.startlistenerslater</code> has been removed. See <bugzilla>58728</bugzilla></li>
<li>Property <code>jmeterthread.reversePostProcessors</code> has been removed. See <bugzilla>58728</bugzilla></li>
</ul>
<!-- =================== Improvements =================== -->
@ -149,6 +151,7 @@ Summary
<li><bug>58653</bug>New JMeter Dashboard/Report with Dynamic Graphs, Tables to help analyzing load test results. Developed by Ubik-Ingenierie and contributed by Decathlon S.A. and Ubik-Ingenierie / UbikLoadPack</li>
<li><bug>58699</bug>Workbench changes neither saved nor prompted for saving upon close. Contributed by Benoit Wiart (benoit dot wiart at gmail.com)</li>
<li><bug>58726</bug>Remove the <code>jmeterthread.startearlier</code> parameter. Contributed by Benoit Wiart (benoit dot wiart at gmail.com)</li>
<li><bug>58728</bug>Drop old behavioural properties</li>
</ul>
<ch_section>Non-functional changes</ch_section>
<ul>