You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openjpa.apache.org by st...@apache.org on 2019/01/02 10:19:01 UTC

[openjpa] 02/02: OPENJPA-2754 implement a workaround for the bug in commons-pool2

This is an automated email from the ASF dual-hosted git repository.

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

commit fa96d6df02ccb12eb15144e1c001f9783bcdd48e
Author: Mark Struberg <st...@apache.org>
AuthorDate: Wed Jan 2 11:17:38 2019 +0100

    OPENJPA-2754 implement a workaround for the bug in commons-pool2
    
    By setting maxIdle to > 0 we can work around the bug and
    even pass your test with the old versions.
---
 pom.xml | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/pom.xml b/pom.xml
index c41a274..d0805ae 100644
--- a/pom.xml
+++ b/pom.xml
@@ -552,7 +552,7 @@
                 <connection.password>${openjpa.mysql.password}</connection.password>
                 <jdbc.DBDictionary />
                 <!-- DBCP overrides for MySQL testing -->
-                <dbcp.maxIdle>0</dbcp.maxIdle>
+                <dbcp.maxIdle>5</dbcp.maxIdle>
                 <dbcp.minIdle>0</dbcp.minIdle>
             </properties>
         </profile>
@@ -590,7 +590,7 @@
                 <jdbc.DBDictionary />
 
                 <!-- DBCP overrides for MySQL testing -->
-                <dbcp.maxIdle>0</dbcp.maxIdle>
+                <dbcp.maxIdle>5</dbcp.maxIdle>
                 <dbcp.minIdle>0</dbcp.minIdle>
 
                 <mysql.server.version>5.7</mysql.server.version>
@@ -647,7 +647,7 @@
                 <connection.password>${openjpa.mariadb.password}</connection.password>
                 <jdbc.DBDictionary />
                 <!-- DBCP overrides for MariaDB testing -->
-                <dbcp.maxIdle>0</dbcp.maxIdle>
+                <dbcp.maxIdle>5</dbcp.maxIdle>
                 <dbcp.minIdle>0</dbcp.minIdle>
             </properties>
         </profile>
@@ -685,7 +685,7 @@
                 <jdbc.DBDictionary />
 
                 <!-- DBCP overrides for mariadb testing -->
-                <dbcp.maxIdle>0</dbcp.maxIdle>
+                <dbcp.maxIdle>5</dbcp.maxIdle>
                 <dbcp.minIdle>0</dbcp.minIdle>
 
                 <mariadb.server.version>10.3</mariadb.server.version>
@@ -746,7 +746,7 @@
                 <connection.password>${openjpa.postgresql.password}</connection.password>
                 <jdbc.DBDictionary />
                 <!-- DBCP overrides -->
-                <dbcp.maxIdle>0</dbcp.maxIdle>
+                <dbcp.maxIdle>5</dbcp.maxIdle>
                 <dbcp.minIdle>0</dbcp.minIdle>
                 <dbcp.maxTotal>20</dbcp.maxTotal>
             </properties>
@@ -1489,7 +1489,7 @@
             <dependency>
                 <groupId>org.apache.commons</groupId>
                 <artifactId>commons-pool2</artifactId>
-                <version>2.6.1-SNAPSHOT</version>
+                <version>2.6.0</version>
             </dependency>
             <dependency>
                 <groupId>commons-logging</groupId>
@@ -1555,7 +1555,7 @@
             <dependency>
                 <groupId>org.apache.commons</groupId>
                 <artifactId>commons-dbcp2</artifactId>
-                <version>2.6.0-SNAPSHOT</version>
+                <version>2.5.0</version>
             </dependency>
             <dependency>
                 <groupId>javax.xml.bind</groupId>