You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by mc...@apache.org on 2017/04/10 14:43:56 UTC
svn commit: r1790839 -
/jmeter/trunk/src/core/org/apache/jmeter/threads/ThreadGroup.java
Author: mchassagneux
Date: Mon Apr 10 14:43:56 2017
New Revision: 1790839
URL: http://svn.apache.org/viewvc?rev=1790839&view=rev
Log:
Don't cumul intial delay + ramp-up delay for a new thread create in the fly.
Bugzilla Id: 60530
Modified:
jmeter/trunk/src/core/org/apache/jmeter/threads/ThreadGroup.java
Modified: jmeter/trunk/src/core/org/apache/jmeter/threads/ThreadGroup.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/threads/ThreadGroup.java?rev=1790839&r1=1790838&r2=1790839&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/threads/ThreadGroup.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/threads/ThreadGroup.java Mon Apr 10 14:43:56 2017
@@ -385,6 +385,8 @@ public class ThreadGroup extends Abstrac
numThreads = getNumThreads();
setNumThreads(numThreads + 1);
}
+ // Don't cumul intialDelay + rampup delay
+ setDelay(0);
newJmThread = startNewThread(notifier, threadGroupTree, engine, numThreads, context, now, delay);
JMeterContextService.addTotalThreads( 1 );
log.info("Started new thread in group {}", groupNumber);
Re: svn commit: r1790839 - /jmeter/trunk/src/core/org/apache/jmeter/threads/ThreadGroup.java
Posted by Maxime Chassagneux <ma...@gmail.com>.
I revert it
2017-04-10 18:59 GMT+02:00 Philippe Mouawad <ph...@gmail.com>:
> On Monday, April 10, 2017, <mc...@apache.org> wrote:
>
> > Author: mchassagneux
> > Date: Mon Apr 10 14:43:56 2017
> > New Revision: 1790839
> >
> > URL: http://svn.apache.org/viewvc?rev=1790839&view=rev
> > Log:
> > Don't cumul intial delay + ramp-up delay for a new thread create in the
> > fly.
> > Bugzilla Id: 60530
> >
> > Modified:
> > jmeter/trunk/src/core/org/apache/jmeter/threads/ThreadGroup.java
> >
> > Modified: jmeter/trunk/src/core/org/apache/jmeter/threads/
> ThreadGroup.java
> > URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/
> > apache/jmeter/threads/ThreadGroup.java?rev=1790839&
> > r1=1790838&r2=1790839&view=diff
> > ============================================================
> > ==================
> > --- jmeter/trunk/src/core/org/apache/jmeter/threads/ThreadGroup.java
> > (original)
> > +++ jmeter/trunk/src/core/org/apache/jmeter/threads/ThreadGroup.java Mon
> > Apr 10 14:43:56 2017
> > @@ -385,6 +385,8 @@ public class ThreadGroup extends Abstrac
> > numThreads = getNumThreads();
> > setNumThreads(numThreads + 1);
> > }
> > + // Don't cumul intialDelay + rampup delay
> > + setDelay(0);
>
>
> -1
> The fix does not look good to me.
> Why touch the delay of thread group here ?
>
> such change requires non regression test.
> We're also in the middle of RC, commits are usually avoided except for
> tests.
>
>
> > newJmThread = startNewThread(notifier, threadGroupTree, engine,
> > numThreads, context, now, delay);
> > JMeterContextService.addTotalThreads( 1 );
> > log.info("Started new thread in group {}", groupNumber);
> >
> >
> >
>
> --
> Cordialement.
> Philippe Mouawad.
>
Re: svn commit: r1790839 - /jmeter/trunk/src/core/org/apache/jmeter/threads/ThreadGroup.java
Posted by Philippe Mouawad <ph...@gmail.com>.
On Monday, April 10, 2017, <mc...@apache.org> wrote:
> Author: mchassagneux
> Date: Mon Apr 10 14:43:56 2017
> New Revision: 1790839
>
> URL: http://svn.apache.org/viewvc?rev=1790839&view=rev
> Log:
> Don't cumul intial delay + ramp-up delay for a new thread create in the
> fly.
> Bugzilla Id: 60530
>
> Modified:
> jmeter/trunk/src/core/org/apache/jmeter/threads/ThreadGroup.java
>
> Modified: jmeter/trunk/src/core/org/apache/jmeter/threads/ThreadGroup.java
> URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/
> apache/jmeter/threads/ThreadGroup.java?rev=1790839&
> r1=1790838&r2=1790839&view=diff
> ============================================================
> ==================
> --- jmeter/trunk/src/core/org/apache/jmeter/threads/ThreadGroup.java
> (original)
> +++ jmeter/trunk/src/core/org/apache/jmeter/threads/ThreadGroup.java Mon
> Apr 10 14:43:56 2017
> @@ -385,6 +385,8 @@ public class ThreadGroup extends Abstrac
> numThreads = getNumThreads();
> setNumThreads(numThreads + 1);
> }
> + // Don't cumul intialDelay + rampup delay
> + setDelay(0);
-1
The fix does not look good to me.
Why touch the delay of thread group here ?
such change requires non regression test.
We're also in the middle of RC, commits are usually avoided except for
tests.
> newJmThread = startNewThread(notifier, threadGroupTree, engine,
> numThreads, context, now, delay);
> JMeterContextService.addTotalThreads( 1 );
> log.info("Started new thread in group {}", groupNumber);
>
>
>
--
Cordialement.
Philippe Mouawad.