Skip to content

Commit 1f2eb55

Browse files
committed
Compatible with the official configuration of dbcp2 connection pool
1 parent 5c7f666 commit 1f2eb55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jdbc/src/main/java/org/apache/zeppelin/jdbc/JDBCInterpreter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ private void configConnectionPool(GenericObjectPool connectionPool, Properties p
425425
boolean testOnCreate = "true".equalsIgnoreCase(properties.getProperty("testOnCreate"));
426426
boolean testOnReturn = "true".equalsIgnoreCase(properties.getProperty("testOnReturn"));
427427
boolean testWhileIdle = "true".equalsIgnoreCase(properties.getProperty("testWhileIdle"));
428-
long betweenEvictionRunsMillis = PropertiesUtil.getLong(properties, "betweenEvictionRunsMillis", -1L);
428+
long timeBetweenEvictionRunsMillis = PropertiesUtil.getLong(properties, "timeBetweenEvictionRunsMillis", -1L);
429429
long maxWaitMillis = PropertiesUtil.getLong(properties, "maxWaitMillis", -1L);
430430
int maxIdle = PropertiesUtil.getInt(properties, "maxIdle", 8);
431431
int minIdle = PropertiesUtil.getInt(properties, "minIdle", 0);
@@ -435,7 +435,7 @@ private void configConnectionPool(GenericObjectPool connectionPool, Properties p
435435
connectionPool.setTestOnCreate(testOnCreate);
436436
connectionPool.setTestOnReturn(testOnReturn);
437437
connectionPool.setTestWhileIdle(testWhileIdle);
438-
connectionPool.setTimeBetweenEvictionRunsMillis(betweenEvictionRunsMillis);
438+
connectionPool.setTimeBetweenEvictionRunsMillis(timeBetweenEvictionRunsMillis);
439439
connectionPool.setMaxIdle(maxIdle);
440440
connectionPool.setMinIdle(minIdle);
441441
connectionPool.setMaxTotal(maxTotal);

0 commit comments

Comments
 (0)