https://issues.apache.org/bugzilla/show_bug.cgi?id=53856

--- Comment #6 from Mikhail T. <[email protected]> ---
Created attachment 29361
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=29361&action=edit
Enhance the logging output of WhiteController's endOfLoop() method (not for
production use)

Ok, some deeper debugging -- after enhancing the log.debug messages inside
WhileController.java a little -- reveal, that the controller's condition is
checked twice per CSV-file row. The endOfLoop() method is invoked twice: first
with the loopEnd-argument set to false, and then -- to true.

At the end, when the CSV Dataset sets all variables to "<EOF>", the function is
called one more time -- with loopEnd set to false. For brevity, I removed the
3rd row from the sample.csv:

2012/09/11 23:38:31 INFO  - jmeter.threads.JMeterThread: Thread started: Thread
Group 1-1 
2012/09/11 23:38:31 DEBUG - org.apache.commons.jexl.ScriptFactory: Parsing
script: "${greek}" != "<EOF>"; 
2012/09/11 23:38:31 DEBUG - jmeter.control.WhileController: Condition string at
loop-end true. (Called from next) 
2012/09/11 23:38:31 DEBUG - jmeter.control.WhileController: Condition value:
false 
2012/09/11 23:38:31 INFO  - jmeter.services.FileServer: Stored: sample.csv 
2012/09/11 23:38:31 DEBUG - org.apache.commons.jexl.ScriptFactory: Parsing
script: "alpha" != "<EOF>"; 
2012/09/11 23:38:31 DEBUG - jmeter.control.WhileController: Condition string at
loop-beginning true. (Called from nextIsNull) 
2012/09/11 23:38:31 DEBUG - jmeter.control.WhileController: Condition value:
false 
2012/09/11 23:38:31 DEBUG - org.apache.commons.jexl.ScriptFactory: Parsing
script: "alpha" != "<EOF>"; 
2012/09/11 23:38:31 DEBUG - jmeter.control.WhileController: Condition string at
loop-end true. (Called from next) 
2012/09/11 23:38:31 DEBUG - jmeter.control.WhileController: Condition value:
false 
2012/09/11 23:38:31 DEBUG - org.apache.commons.jexl.ScriptFactory: Parsing
script: "beta" != "<EOF>"; 
2012/09/11 23:38:31 DEBUG - jmeter.control.WhileController: Condition string at
loop-beginning true. (Called from nextIsNull) 
2012/09/11 23:38:31 DEBUG - jmeter.control.WhileController: Condition value:
false 
2012/09/11 23:38:31 DEBUG - org.apache.commons.jexl.ScriptFactory: Parsing
script: "beta" != "<EOF>"; 
2012/09/11 23:38:31 DEBUG - jmeter.control.WhileController: Condition string at
loop-end true. (Called from next) 
2012/09/11 23:38:31 DEBUG - jmeter.control.WhileController: Condition value:
false 
2012/09/11 23:38:31 DEBUG - org.apache.commons.jexl.ScriptFactory: Parsing
script: "<EOF>" != "<EOF>"; 
2012/09/11 23:38:31 DEBUG - jmeter.control.WhileController: Condition string at
loop-beginning false. (Called from nextIsNull) 
2012/09/11 23:38:31 DEBUG - jmeter.control.WhileController: Condition value:
true 
2012/09/11 23:38:31 INFO  - jmeter.threads.JMeterThread: Thread finished:
Thread Group 1-1 

The above output tells me:
 a. This bug report is not at all "INVALID"
 b. It is possible to fix the problem...

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to