You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by bu...@apache.org on 2007/06/29 12:40:49 UTC

DO NOT REPLY [Bug 42778] New: - Samplers reliably skipped by ThreadGroup iterator (r550144)

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42778>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42778

           Summary: Samplers reliably skipped by ThreadGroup iterator
                    (r550144)
           Product: JMeter
           Version: Nightly (Please specify date)
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: Main
        AssignedTo: jmeter-dev@jakarta.apache.org
        ReportedBy: tim-asf@baverstock.org.uk


Within the following attached script, HTTP samplers 2 and 4 are reliably
skipped, when they should be being executed. I came across this in nightly build
r541884, but it also happens in r550144.

I spent a couple of days trying to track this down, and isolated it to something
strange within the call to controller.next() in JMeterThread:run() when it
leaves the IfController and starts sniffing the SimpleController after it: the
sequence manages to set the TransactionSampler to be its own subsampler, instead
of the HTTPSampler it initially gets hold of.

I have the vague idea that it's a flaw around nextIsAController, but I don't
understand what the various methods think they're supposed to be doing. (I
couldn't find any useful documentation; if there is some, I'd be interested to
know where it is, for future reference.)

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

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


DO NOT REPLY [Bug 42778] - Samplers reliably skipped by ThreadGroup iterator (r550144)

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42778>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42778





------- Additional Comments From tim-asf@baverstock.org.uk  2007-06-29 03:43 -------
Created an attachment (id=20419)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=20419&action=view)
A simple script whose second and fourth HTTP samplers are unexpectedly skipped


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

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


DO NOT REPLY [Bug 42778] - Samplers reliably skipped by ThreadGroup iterator (r550144)

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42778>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42778





------- Additional Comments From sebb@apache.org  2007-06-29 04:45 -------
There are some errors reported in the log file; this is due to the If 
Controller condition which is incorrect. Disabling the If Controller (which 
does nothing anyway) allows HTTP-2 to work.

HTTP-4 still fails to run - there is another error in the log file which I 
will investigate.

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

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


DO NOT REPLY [Bug 42778] - Transaction Controller skips sample (NPE)

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42778>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42778


sebb@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
            Summary|Samplers reliably skipped by|Transaction Controller skips
                   |ThreadGroup iterator        |sample (NPE)
                   |(r550144)                   |




------- Additional Comments From sebb@apache.org  2007-06-30 08:16 -------
Thanks, that works fine.

Patch has been committed in r552158.

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

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


DO NOT REPLY [Bug 42778] - Transaction Controller skips sample (NPE)

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42778>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42778





------- Additional Comments From sebb@apache.org  2007-06-30 08:20 -------
(In reply to comment #0)
> I have the vague idea that it's a flaw around nextIsAController, but I don't
> understand what the various methods think they're supposed to be doing. (I
> couldn't find any useful documentation; if there is some, I'd be interested 
to
> know where it is, for future reference.)

AFAIK, there's only the code.

It could do with more Javadoc, and an explanatory package.html, as it's pretty 
complicated.


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

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


DO NOT REPLY [Bug 42778] - Samplers reliably skipped by ThreadGroup iterator (r550144)

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42778>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42778





------- Additional Comments From alf@i100.no  2007-06-30 02:40 -------
Created an attachment (id=20422)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=20422&action=view)
Suggested patch

Thanks for finding and reporting this bug.

This patch solves the problem for both the two attached test scripts.

The problem was that the TransactionController did not return the next real
sampler or controller, but instead returned the TransactionSampler, which was
incorrect.


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

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


DO NOT REPLY [Bug 42778] - Samplers reliably skipped by ThreadGroup iterator (r550144)

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42778>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42778


sebb@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #20419|0                           |1
        is obsolete|                            |




------- Additional Comments From sebb@apache.org  2007-06-29 04:59 -------
Created an attachment (id=20420)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=20420&action=view)
Transaction controller with and without simple controller

I've attached a simpler test case which shows the problem - the nested Simple
Controller seems to be causing problems for the Transaction Controller.

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

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