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 2019/11/06 07:53:48 UTC

[Bug 63906] New: NPE for InfluxDB backend listener during failover testing

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

            Bug ID: 63906
           Summary: NPE for InfluxDB backend listener during failover
                    testing
           Product: JMeter
           Version: 5.1.1
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Main
          Assignee: issues@jmeter.apache.org
          Reporter: sergiy.iampol@playtech.com
  Target Milestone: JMETER_5.2

Created attachment 36873
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=36873&action=edit
test plan view

BL works fine most of the time. However I had to run specific kind of test -
failover, where I test how does start/stop/restart/deploy etc are going on the
backend side. This obviously results in some outage and there are lots of
errors and delays during such actions.
As I said such behavior is expected but during one such restart I got following
exception on all my load injectors:
*******************
    2019-11-06 06:52:41,928 ERROR o.a.j.JMeter: Uncaught exception:
java.lang.NullPointerException: null
            at
org.apache.jmeter.visualizers.backend.ErrorMetric.getResponseMessage(ErrorMetric.java:71)
~[ApacheJMeter_components.jar:r1859277]
            at
org.apache.jmeter.visualizers.backend.ErrorMetric.hashCode(ErrorMetric.java:92)
~[ApacheJMeter_components.jar:r1859277]
            at java.util.HashMap.hash(HashMap.java:339) ~[?:1.8.0_222]
            at java.util.HashMap.getOrDefault(HashMap.java:1057) ~[?:1.8.0_222]
            at
org.apache.jmeter.visualizers.backend.SamplerMetric.add(SamplerMetric.java:98)
~[ApacheJMeter_components.jar:r1859277]
            at
org.apache.jmeter.visualizers.backend.influxdb.InfluxdbBackendListenerClient.handleSampleResults(InfluxdbBackendListenerClient.java:307)
~[ApacheJMeter_components.jar:r1859277]
            at
org.apache.jmeter.visualizers.backend.BackendListener.sendToListener(BackendListener.java:267)
~[ApacheJMeter_components.jar:r1859277]
            at
org.apache.jmeter.visualizers.backend.BackendListener$Worker.run(BackendListener.java:239)
~[ApacheJMeter_components.jar:r1859277] 
*******************

The main problem is that whole test stack after that exception. Meaning no more
load were produced.

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

[Bug 63906] NPE for InfluxDB backend listener during failover testing

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |p.mouawad@ubik-ingenierie.c
                   |                            |om
           Hardware|PC                          |All
   Target Milestone|JMETER_5.2                  |JMETER_5.2.1
         Resolution|---                         |FIXED
                 OS|Linux                       |All
             Status|NEW                         |RESOLVED

--- Comment #1 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
pmouawad pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jmeter.git


The following commit(s) were added to refs/heads/master by this push:
     new d763e53  ErrorMetric: test for nullity of responseMessage as it may be
null
d763e53 is described below

commit d763e53d5c230502b65addb96b758460c8126280
Author: pmouawad <p....@ubik-ingenierie.com>
AuthorDate: Mon Nov 11 19:01:08 2019 +0100

    ErrorMetric: test for nullity of responseMessage as it may be null

    This resolves Bug 63906 - NPE for InfluxDB backend listener during
    failover testing
---
 .../main/java/org/apache/jmeter/visualizers/backend/ErrorMetric.java    | 2 +-
 src/core/src/main/java/org/apache/jmeter/samplers/SampleResult.java     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

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