You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jmeter.apache.org by bu...@apache.org on 2018/08/22 13:33:47 UTC

[Bug 62647] New: Functions not working in distributed mode

https://bz.apache.org/bugzilla/show_bug.cgi?id=62647

            Bug ID: 62647
           Summary: Functions not working in distributed mode
           Product: JMeter
           Version: 4.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: HTTP
          Assignee: issues@jmeter.apache.org
          Reporter: alexander.barker@factset.com
  Target Milestone: ---

Created attachment 36107
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=36107&action=edit
Function Test in Distributed Mode

I use functions in the attached test plan to generate values e.g.
${__TestPlanName} and ${__time(yyyyMMdd-HHmm)}

I use them in User Defined Values (see attached test plan) or as arguments in a
JSR223 pre/post processor and then call them in the main thread, it works as
expected:

2018-08-21 23:05:39,751 INFO o.a.j.p.j.s.JSR223Sampler: >>>>>>>>>>>>>>>>>>>>>>
TEST STARTED!
2018-08-21 23:05:39,751 INFO o.a.j.p.j.s.JSR223Sampler: >>>>>>>>>>>>>>>>>>>>>>
20180821-2305
2018-08-21 23:05:39,751 INFO o.a.j.p.j.s.JSR223Sampler: >>>>>>>>>>>>>>>>>>>>>>
FunctionTest.jmx
2018-08-21 23:05:39,758 INFO o.a.j.p.j.s.JSR223Sampler: >>>>>>>>>>>>>>>>>>>>>>
NEXT TEST
2018-08-21 23:05:39,758 INFO o.a.j.p.j.s.JSR223Sampler: >>>>>>>>>>>>>>>>>>>>>>
20180821-2305
2018-08-21 23:05:39,758 INFO o.a.j.p.j.s.JSR223Sampler: >>>>>>>>>>>>>>>>>>>>>>
FunctionTest.jmx

Now here comes the problem, if I take this file and run jmeter in distributed
mode, the functions are not evaluated!

2018-08-21 22:55:16,667 INFO o.a.j.p.j.s.JSR223Sampler: >>>>>>>>>>>>>>>>>>>>>>
TEST STARTED!
2018-08-21 22:55:16,668 INFO o.a.j.p.j.s.JSR223Sampler: >>>>>>>>>>>>>>>>>>>>>>
${__time(yyyyMMdd-HHmm)}
2018-08-21 22:55:16,668 INFO o.a.j.p.j.s.JSR223Sampler: >>>>>>>>>>>>>>>>>>>>>>
${__TestPlanName}
2018-08-21 23:05:39,758 INFO o.a.j.p.j.s.JSR223Sampler: >>>>>>>>>>>>>>>>>>>>>>
NEXT TEST
2018-08-21 22:55:16,701 INFO o.a.j.p.j.s.JSR223Sampler: >>>>>>>>>>>>>>>>>>>>>>
${__time(yyyyMMdd-HHmm)}
2018-08-21 22:55:16,704 INFO o.a.j.p.j.s.JSR223Sampler: >>>>>>>>>>>>>>>>>>>>>>
${__TestPlanName}

I tried running the test individually on each server and they work as expected.
However when I use jmeter-server it doesn’t work.

SSL keystore is disabled (server.rmi.ssl.disable=true) on the servers as we use
them internally.

Similar to this issue on the web:
https://stackoverflow.com/questions/29621261/jmeter-pvar-doesnt-work-during-remote-distributed-testing

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

[Bug 62647] Functions not working in distributed mode

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62647

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO
                 CC|                            |p.mouawad@ubik-ingenierie.c
                   |                            |om

--- Comment #2 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
it works for me.

I ran:

> ./jmeter-server

Then :

> ./jmeter -X -r -t /data/jmeter/BUG_62647.jmx -l /data/jmeter/BUG_62647.csv -j jmeter-client.log -n  -RXXX.XXX.XXX.XXX:1099

I get in logs of jmeter-server.log:

2018-08-25 22:52:39,900 INFO o.a.j.p.j.s.JSR223Sampler: >>>>>>>>>>>>>>>>>>>>>>
TEST STARTED!
2018-08-25 22:52:39,907 INFO o.a.j.p.j.s.JSR223Sampler: >>>>>>>>>>>>>>>>>>>>>>
20180825-2252
2018-08-25 22:52:39,907 INFO o.a.j.p.j.s.JSR223Sampler: >>>>>>>>>>>>>>>>>>>>>>
BUG_62647.jmx
2018-08-25 22:52:39,932 INFO o.a.j.p.j.s.JSR223Sampler: >>>>>>>>>>>>>>>>>>>>>>
NEXT TEST
2018-08-25 22:52:39,935 INFO o.a.j.p.j.s.JSR223Sampler: >>>>>>>>>>>>>>>>>>>>>>
20180825-2252
2018-08-25 22:52:39,935 INFO o.a.j.p.j.s.JSR223Sampler: >>>>>>>>>>>>>>>>>>>>>>
BUG_62647.jmx


Can you clarify:
- what version you're using ?
- how you run the test
- attach jmeter.log

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

[Bug 62647] Functions not working in distributed mode

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62647

Alex <al...@factset.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW

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

[Bug 62647] Functions not working in distributed mode

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62647

--- Comment #3 from Alex <al...@factset.com> ---
Created attachment 36111
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=36111&action=edit
Function Test in Distributed Mode - Server Log File

I have attached the server.log file.

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

[Bug 62647] Functions not working in distributed mode

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62647

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |WORKSFORME

--- Comment #5 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
Indeed the issue is related to :
WARN o.a.j.e.u.CompoundVariable: Did not find any functions

This means that no function has been loaded which point to a corrupt jmeter
server installation.

Can you check your jmeter installation ?

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

[Bug 62647] Functions not working in distributed mode

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62647

--- Comment #1 from Alex <al...@factset.com> ---
Environment:

CentOS Linux release 7.5.1804 (Core)

OpenJDK Runtime Environment (build 1.8.0_171-b10)
OpenJDK 64-Bit Server VM (build 25.171-b10, mixed mode)

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

[Bug 62647] Functions not working in distributed mode

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62647

--- Comment #4 from Alex <al...@factset.com> ---
Could this be something to do with it?

2018-08-27 10:59:32,331 WARN o.a.j.e.u.CompoundVariable: Did not find any
functions

CompoundVariable seems to be linked to the replacement of strings and
functions:
https://jmeter.apache.org/api/org/apache/jmeter/engine/util/UndoVariableReplacement.html

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