From commits-return-8224-apmail-jmeter-commits-archive=jmeter.apache.org@jmeter.apache.org Tue Nov 21 21:37:34 2017 Return-Path: X-Original-To: apmail-jmeter-commits-archive@minotaur.apache.org Delivered-To: apmail-jmeter-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 21371171F7 for ; Tue, 21 Nov 2017 21:37:34 +0000 (UTC) Received: (qmail 50511 invoked by uid 500); 21 Nov 2017 21:37:34 -0000 Delivered-To: apmail-jmeter-commits-archive@jmeter.apache.org Received: (qmail 50483 invoked by uid 500); 21 Nov 2017 21:37:34 -0000 Mailing-List: contact commits-help@jmeter.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jmeter.apache.org Delivered-To: mailing list commits@jmeter.apache.org Received: (qmail 50474 invoked by uid 99); 21 Nov 2017 21:37:34 -0000 Received: from Unknown (HELO svn01-us-west.apache.org) (209.188.14.144) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Nov 2017 21:37:34 +0000 Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id 9183B3A026D for ; Tue, 21 Nov 2017 21:37:32 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1815990 - /jmeter/trunk/src/core/org/apache/jmeter/threads/JMeterThread.java Date: Tue, 21 Nov 2017 21:37:31 -0000 To: commits@jmeter.apache.org From: pmouawad@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20171121213732.9183B3A026D@svn01-us-west.apache.org> Author: pmouawad Date: Tue Nov 21 21:37:30 2017 New Revision: 1815990 URL: http://svn.apache.org/viewvc?rev=1815990&view=rev Log: Bug 61762 - Start Next Thread Loop should be used everywhere Replace deprecated method Bugzilla Id: 61762 Modified: jmeter/trunk/src/core/org/apache/jmeter/threads/JMeterThread.java Modified: jmeter/trunk/src/core/org/apache/jmeter/threads/JMeterThread.java URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/threads/JMeterThread.java?rev=1815990&r1=1815989&r2=1815990&view=diff ============================================================================== --- jmeter/trunk/src/core/org/apache/jmeter/threads/JMeterThread.java (original) +++ jmeter/trunk/src/core/org/apache/jmeter/threads/JMeterThread.java Tue Nov 21 21:37:30 2017 @@ -253,10 +253,10 @@ public class JMeterThread implements Run // restart of the next loop // - was requested through threadContext // - or the last sample failed AND the onErrorStartNextLoop option is enabled - if (threadContext.isRestartNextLoop() + if (threadContext.isStartNextThreadLoop() || (onErrorStartNextLoop && !TRUE.equals(threadContext.getVariables().get(LAST_SAMPLE_OK)))) { - if (log.isDebugEnabled() && onErrorStartNextLoop && !threadContext.isRestartNextLoop()) { + if (log.isDebugEnabled() && onErrorStartNextLoop && !threadContext.isStartNextThreadLoop()) { log.debug("StartNextLoop option is on, Last sample failed, starting next loop"); }