jakarta-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 51480] ConstantThroughputTimer in shared mode all threads start with an incorrect delay of 0
Date Mon, 18 Jul 2011 05:27:04 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=51480

--- Comment #12 from baerrach <baerrach@gmail.com> 2011-07-18 05:27:04 UTC ---
ConstantThroughputTimer.setCalcMode becomes:

    /**
     * Setting this has the side effect of sharing <code>throughputInfo</code>
if the mode is
     * <em>shared</em> and sampling has started.
     *
     * @param mode
     *            the delay calculation mode
     */
    public void setCalcMode(String mode) {
        this.calcMode = mode;
        // TODO find better way to get modeInt
        this.modeInt =
ConstantThroughputTimerBeanInfo.getCalcModeAsInt(calcMode);

        if (JMeterContextService.getContext().isSamplingStarted()) {
            switch (modeInt) {
            case CALC_MODE_4_ALL_ACTIVE_THREADS_SHARED:
                throughputInfo = allThreadsInfo;
                break;

            case CALC_MODE_5_ALL_ACTIVE_THREADS_IN_CURRENT_THREAD_GROUP_SHARED:
                final org.apache.jmeter.threads.AbstractThreadGroup group =
JMeterContextService
                        .getContext().getThreadGroup();
                /*
                 * Share the first thread's throughputInfo
                 */
                threadGroupsInfoMap.putIfAbsent(group, throughputInfo);
                throughputInfo = threadGroupsInfoMap.get(group);
                break;
            }
        }
    }

But my ant tests are no longer working...

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org


Mime
View raw message