jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1778951 - /jmeter/trunk/src/components/org/apache/jmeter/visualizers/backend/influxdb/InfluxdbBackendListenerClient.java
Date Sun, 15 Jan 2017 22:40:17 GMT
Author: pmouawad
Date: Sun Jan 15 22:40:17 2017
New Revision: 1778951

URL: http://svn.apache.org/viewvc?rev=1778951&view=rev
Log:
Fix 2 sonar issues

Modified:
    jmeter/trunk/src/components/org/apache/jmeter/visualizers/backend/influxdb/InfluxdbBackendListenerClient.java

Modified: jmeter/trunk/src/components/org/apache/jmeter/visualizers/backend/influxdb/InfluxdbBackendListenerClient.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/components/org/apache/jmeter/visualizers/backend/influxdb/InfluxdbBackendListenerClient.java?rev=1778951&r1=1778950&r2=1778951&view=diff
==============================================================================
--- jmeter/trunk/src/components/org/apache/jmeter/visualizers/backend/influxdb/InfluxdbBackendListenerClient.java
(original)
+++ jmeter/trunk/src/components/org/apache/jmeter/visualizers/backend/influxdb/InfluxdbBackendListenerClient.java
Sun Jan 15 22:40:17 2017
@@ -55,8 +55,6 @@ public class InfluxdbBackendListenerClie
     
     // Name of the measurement
     private static final String DEFAULT_MEASUREMENT = "jmeter";
-    // Name of the application tested
-    private static String application = "";
 
     private static final String TAG_TRANSACTION = ",transaction=";
 
@@ -97,6 +95,8 @@ public class InfluxdbBackendListenerClie
     private Map<String, Float> koPercentiles;
     private Map<String, Float> allPercentiles;
     private String testTitle;
+    // Name of the application tested
+    private String application = "";
 
     private InfluxdbMetricsSender influxdbMetricsManager;
 
@@ -329,6 +329,7 @@ public class InfluxdbBackendListenerClie
             scheduler.awaitTermination(30, TimeUnit.SECONDS);
         } catch (InterruptedException e) {
             LOGGER.error("Error waiting for end of scheduler");
+            Thread.currentThread().interrupt();
         }
         // Annotation of the end of the run ( usefull with Grafana )
         influxdbMetricsManager.addMetric(EVENTS_FOR_ANNOTATION, TAG_APPLICATION + application,



Mime
View raw message