[ 
https://issues.apache.org/jira/browse/TORQUE-362?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Max Philipp Wriedt updated TORQUE-362:
--------------------------------------
    Description: 
When I set properties like:
{code:java}
torque.dsfactory.test.pool.maxTotal = 20
torque.dsfactory.test.pool.maxIdle = 15
torque.dsfactory.test.pool.maxWaitMillis = 10000
torque.dsfactory.test.pool.timeBetweenEvictionRunsMillis = 300000
torque.dsfactory.test.pool.minEvictableIdleTimeMillis = 3600000
// rest of config for reference
torque.database.default = test
torque.dsfactory.hvp.factory = 
org.apache.torque.dsfactory.SharedPool2DataSourceFactory
torque.database.hvp.adapter = mysql
torque.dsfactory.test.connection.driver = org.mariadb.jdbc.Driver
torque.dsfactory.test.connection.url = jdbc:mariadb://localhost:3306/hvp
torque.dsfactory.test.connection.user = user
torque.dsfactory.test.connection.password = password{code}
the initialization throws:

 
{code:java}
12:33:09.565 [main] ERROR org.apache.torque.dsfactory.AbstractDataSourceFactory 
- Property: maxIdle  value: 15  is not supported by DataSource: 
org.apache.commons.dbcp2.datasources.SharedPoolDataSource
12:33:09.570 [main] ERROR org.apache.torque.dsfactory.AbstractDataSourceFactory 
- Property: maxWaitMillis  value: 10000  is not supported by DataSource: 
org.apache.commons.dbcp2.datasources.SharedPoolDataSource
12:33:09.570 [main] ERROR org.apache.torque.dsfactory.AbstractDataSourceFactory 
- Property: timeBetweenEvictionRunsMillis  value: 300000  is not supported by 
DataSource: org.apache.commons.dbcp2.datasources.SharedPoolDataSource
12:33:09.571 [main] ERROR org.apache.torque.dsfactory.AbstractDataSourceFactory 
- Property: minEvictableIdleTimeMillis  value: 3600000  is not supported by 
DataSource: org.apache.commons.dbcp2.datasources.SharedPoolDataSource {code}
 
The reference says those properties exist: 
[https://commons.apache.org/proper/commons-dbcp/configuration.html]
 
Am I missing something here? As you can see, I use the MariaDB JDBC Driver, but 
I don't think this has effects to the pool properties?

> SharedPool2DataSourceFactory says property is not supported
> -----------------------------------------------------------
>
>                 Key: TORQUE-362
>                 URL: https://issues.apache.org/jira/browse/TORQUE-362
>             Project: Torque
>          Issue Type: Bug
>            Reporter: Max Philipp Wriedt
>            Priority: Minor
>
> When I set properties like:
> {code:java}
> torque.dsfactory.test.pool.maxTotal = 20
> torque.dsfactory.test.pool.maxIdle = 15
> torque.dsfactory.test.pool.maxWaitMillis = 10000
> torque.dsfactory.test.pool.timeBetweenEvictionRunsMillis = 300000
> torque.dsfactory.test.pool.minEvictableIdleTimeMillis = 3600000
> // rest of config for reference
> torque.database.default = test
> torque.dsfactory.hvp.factory = 
> org.apache.torque.dsfactory.SharedPool2DataSourceFactory
> torque.database.hvp.adapter = mysql
> torque.dsfactory.test.connection.driver = org.mariadb.jdbc.Driver
> torque.dsfactory.test.connection.url = jdbc:mariadb://localhost:3306/hvp
> torque.dsfactory.test.connection.user = user
> torque.dsfactory.test.connection.password = password{code}
> the initialization throws:
>  
> {code:java}
> 12:33:09.565 [main] ERROR 
> org.apache.torque.dsfactory.AbstractDataSourceFactory - Property: maxIdle  
> value: 15  is not supported by DataSource: 
> org.apache.commons.dbcp2.datasources.SharedPoolDataSource
> 12:33:09.570 [main] ERROR 
> org.apache.torque.dsfactory.AbstractDataSourceFactory - Property: 
> maxWaitMillis  value: 10000  is not supported by DataSource: 
> org.apache.commons.dbcp2.datasources.SharedPoolDataSource
> 12:33:09.570 [main] ERROR 
> org.apache.torque.dsfactory.AbstractDataSourceFactory - Property: 
> timeBetweenEvictionRunsMillis  value: 300000  is not supported by DataSource: 
> org.apache.commons.dbcp2.datasources.SharedPoolDataSource
> 12:33:09.571 [main] ERROR 
> org.apache.torque.dsfactory.AbstractDataSourceFactory - Property: 
> minEvictableIdleTimeMillis  value: 3600000  is not supported by DataSource: 
> org.apache.commons.dbcp2.datasources.SharedPoolDataSource {code}
>  
> The reference says those properties exist: 
> [https://commons.apache.org/proper/commons-dbcp/configuration.html]
>  
> Am I missing something here? As you can see, I use the MariaDB JDBC Driver, 
> but I don't think this has effects to the pool properties?



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscr...@db.apache.org
For additional commands, e-mail: torque-dev-h...@db.apache.org

Reply via email to