Bug 60257

Summary: backend listener does not like certain words as the sampler label names
Product: JMeter - Now in Github Reporter: jz5168
Component: MainAssignee: JMeter issues mailing list <issues>
Status: RESOLVED WORKSFORME    
Severity: normal CC: p.mouawad
Priority: P2    
Version: 3.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Attachments: sample jmeter test script to reproduce the problem
Log file
My Test plan

Description jz5168 2016-10-14 13:46:47 UTC
The backend listener does not like some words in the sampler label name.  For example, for example, these sampler names (all http samplers):

GlobalCase
IMRe case
Flex independent all

The backend listener will simply not send to the backend Grafana servers.

This is the case for both version 2.13 and 3.0.  With 3.0 regular expression support for the sampler list, if using ".*", other samplers will be sent, but these samplers will not be.

This looks like a silly defect since it is just label.
Comment 1 Philippe Mouawad 2016-10-15 11:26:11 UTC
Hello,
Thanks for report.
My guess is that space may be the problem but I don't see why it would fail for GlobalCase.
Do you confirm there is no space ?
Could you also remove the space in your naming and see if it works better ?
Thanks
Comment 2 Philippe Mouawad 2016-10-19 20:25:53 UTC
(In reply to jz5168 from comment #0)
> The backend listener does not like some words in the sampler label name. 
> For example, for example, these sampler names (all http samplers):
> 
> GlobalCase
> IMRe case
> Flex independent all
> 
> The backend listener will simply not send to the backend Grafana servers.
> 
> This is the case for both version 2.13 and 3.0.  With 3.0 regular expression
> support for the sampler list, if using ".*", other samplers will be sent,
> but these samplers will not be.
> 
> This looks like a silly defect since it is just label.

Hi,
JMeter escapes some characters when sending metrics so:
IMRe case => IMRe-case
Flex independent all => Flex-independent-all

For GlobalCase I don't know what's the problem.

Regards
Comment 3 jz5168 2016-10-19 20:28:59 UTC
Space is NOT what's causing the issue.  We have many sampler labels that have white space in them, that's fine.  The sampler labels I provided are as is (without double quote):

"GlobalCase"
"IMRe case"
"Flex independent all"

If we change "GlobalCase" to "GlobalCas", it works.  So the backend listener does not like "Case" in the label.

You can verify yourself easily.
Comment 4 Philippe Mouawad 2016-10-19 20:33:23 UTC
(In reply to jz5168 from comment #3)
> Space is NOT what's causing the issue.  We have many sampler labels that
> have white space in them, that's fine.  The sampler labels I provided are as
> is (without double quote):
> 
> "GlobalCase"
> "IMRe case"
> "Flex independent all"
> 
> If we change "GlobalCase" to "GlobalCas", it works.  So the backend listener
> does not like "Case" in the label.

What about IMRe case ? same issue ? works if you set cas ?
and "Flex independent all" , it does not contain case ?
Could it be size of label ?
> 
> You can verify yourself easily.
Comment 5 jz5168 2016-10-19 20:38:06 UTC
For all three example I provided:

"GlobalCase"
"IMRe case"
"Flex independent all"

They do not work - we have tried.  The character length is also not problem, we have much longer label name that do work.

If we change "IMRe case" to "IMRe cas", it works.  That's why I suspect it doesn't like "case" in it.

For "Flex independent all", it seems it's the word "independent" it does not like.
Comment 6 Philippe Mouawad 2016-11-12 14:10:52 UTC
Cannot reproduce without more detail.
Comment 7 jz5168 2016-11-14 16:30:26 UTC
Created attachment 34442 [details]
sample jmeter test script to reproduce the problem

1) In the backend listener, set the graphite server host to the actual host you have set up

2) Take a look at the samplers' comments, I've marked working vs. not working.  Working ones will send to the graphite server, while not working ones will not.
Comment 8 jz5168 2016-11-14 16:30:51 UTC
Use the attached test script to reproduce the problem.
Comment 9 Philippe Mouawad 2016-11-14 20:08:12 UTC
Hello,
Regarding your architecture:
- You speak about Grafana server, do you mean Graphite or InfluxDB ?
- You are using Grafana to render results right ?

What are the versions you are using for each software ? A schema explaining the architecture is welcome.

Could those issues be your problem ?
https://github.com/grafana/grafana/issues/2983
https://github.com/influxdata/influxdb/issues/3787

Thanks
Regards
Comment 10 Philippe Mouawad 2016-11-14 20:37:15 UTC
Hi,
I confirmed issue is not a JMeter one.
I installed last InfluxDB version 1.1
I ran a slightly modified version of your test to use Java Request instead of Debug Sampler (just to have timings > 0).

All metrics are in DB as you can see in attached file.
For info, I dropped jmeter db , I ran the test and ran SELECT * FROM /.*/ LIMIT 1.

Regards
Philippe M.
Comment 11 Philippe Mouawad 2016-11-14 20:37:39 UTC
Created attachment 34443 [details]
Log file
Comment 12 Philippe Mouawad 2016-11-14 20:38:02 UTC
Created attachment 34444 [details]
My Test plan
Comment 13 jz5168 2016-11-14 21:17:52 UTC
Philippe,

You are correct, I verified the data are indeed inserted into InfluxDB. It seems the issue is on the Grafana side. I'm using Grafana Version 3.1.1.  I will further investigate.
Comment 14 The ASF infrastructure team 2022-09-24 20:38:06 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/4143