jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fschumac...@apache.org
Subject [jmeter] 10/32: Update Apache commons-pool2 to 2.11.0
Date Sat, 21 Aug 2021 12:10:32 GMT
This is an automated email from the ASF dual-hosted git repository.

fschumacher pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jmeter.git

commit b8a6fb7289be77dbfaa66d565cc7f87769c20279
Author: Felix Schumacher <felix.schumacher@internetallee.de>
AuthorDate: Fri Aug 13 14:11:56 2021 +0200

    Update Apache commons-pool2 to 2.11.0
---
 gradle.properties                                                   | 2 +-
 .../visualizers/backend/graphite/AbstractGraphiteMetricsSender.java | 6 +++---
 src/dist/src/dist/expected_release_jars.csv                         | 2 +-
 xdocs/changes.xml                                                   | 1 +
 4 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/gradle.properties b/gradle.properties
index 1d973cc..ac1ad7c 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -73,7 +73,7 @@ commons-lang3.version=3.12.0
 commons-logging.version=1.2
 commons-math3.version=3.6.1
 commons-net.version=3.8.0
-commons-pool2.version=2.9.0
+commons-pool2.version=2.11.0
 commons-text.version=1.9
 darklaf.version=2.7.2
 darklaf.extensions.version=0.3.4
diff --git a/src/components/src/main/java/org/apache/jmeter/visualizers/backend/graphite/AbstractGraphiteMetricsSender.java
b/src/components/src/main/java/org/apache/jmeter/visualizers/backend/graphite/AbstractGraphiteMetricsSender.java
index 3e5f61a..3ac0a7c 100644
--- a/src/components/src/main/java/org/apache/jmeter/visualizers/backend/graphite/AbstractGraphiteMetricsSender.java
+++ b/src/components/src/main/java/org/apache/jmeter/visualizers/backend/graphite/AbstractGraphiteMetricsSender.java
@@ -17,7 +17,7 @@
 
 package org.apache.jmeter.visualizers.backend.graphite;
 
-import java.util.concurrent.TimeUnit;
+import java.time.Duration;
 
 import org.apache.commons.lang3.StringUtils;
 import org.apache.commons.pool2.impl.GenericKeyedObjectPool;
@@ -44,8 +44,8 @@ abstract class AbstractGraphiteMetricsSender implements GraphiteMetricsSender
{
         config.setMaxTotalPerKey(-1);
         config.setMaxTotal(-1);
         config.setMaxIdlePerKey(-1);
-        config.setMinEvictableIdleTimeMillis(TimeUnit.MINUTES.toMillis(3));
-        config.setTimeBetweenEvictionRunsMillis(TimeUnit.MINUTES.toMillis(3));
+        config.setMinEvictableIdleTime(Duration.ofMinutes(3));
+        config.setTimeBetweenEvictionRuns(Duration.ofMinutes(3));
 
         return new GenericKeyedObjectPool<>(
                 new SocketOutputStreamPoolFactory(SOCKET_CONNECT_TIMEOUT_MS, SOCKET_TIMEOUT),
config);
diff --git a/src/dist/src/dist/expected_release_jars.csv b/src/dist/src/dist/expected_release_jars.csv
index b45f720..4092222 100644
--- a/src/dist/src/dist/expected_release_jars.csv
+++ b/src/dist/src/dist/expected_release_jars.csv
@@ -17,7 +17,7 @@
 61829,commons-logging-1.2.jar
 2213560,commons-math3-3.6.1.jar
 307305,commons-net-3.8.0.jar
-141192,commons-pool2-2.10.0.jar
+145267,commons-pool2-2.11.0.jar
 216211,commons-text-1.9.jar
 1547038,darklaf-core-2.7.2.jar
 20650,darklaf-extensions-rsyntaxarea-0.3.4.jar
diff --git a/xdocs/changes.xml b/xdocs/changes.xml
index 0ceed13..5109836 100644
--- a/xdocs/changes.xml
+++ b/xdocs/changes.xml
@@ -148,6 +148,7 @@ Summary
   <li>Updated Apache commons-io to 2.11.0 (from 2.8.0).</li>
   <li>Updated Apache commons-lang3 to 3.12.0 (from 3.11).</li>
   <li>Updated Apache commons-net to 3.8.0 (from 3.7.2).</li>
+  <li>Updated Apache commons-pool2 to 2.11.0 (from 2.9.0).</li>
 </ul>
 
  <!-- =================== Bug fixes =================== -->

Mime
View raw message