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

Michal Sabo updated POOL-243:
-----------------------------

    Description: When KeyedPooledObjectFactory method create(K key), covering 
the object pool lifecycle, fails to create an object and throws an exception, 
the created object counter (createCount) of particular ObjectDeque do not gets 
decremented. As a result, setting the maxTotalPerKey do not work properly, 
which can cause a serious issue when maxTotalPerKey is set to for example 1.  
(was: When KeyedPooledObjectFactory method create(K key), covering the object 
pool lifecycle, fails to create an object and throws an exception, the created 
object counter (createCount) of particular ObjectDeque do not gets decremented. 
As a result the maxTotalPerKey is not satisfied, which can cause a serious 
issue when maxTotalPerKey is set low, e.g. to 1.)

> Object creation exception do not decrement createCount in 
> GenericKeyedObjectPool implementation
> -----------------------------------------------------------------------------------------------
>
>                 Key: POOL-243
>                 URL: https://issues.apache.org/jira/browse/POOL-243
>             Project: Commons Pool
>          Issue Type: Bug
>    Affects Versions: 2.0
>            Reporter: Michal Sabo
>            Priority: Critical
>
> When KeyedPooledObjectFactory method create(K key), covering the object pool 
> lifecycle, fails to create an object and throws an exception, the created 
> object counter (createCount) of particular ObjectDeque do not gets 
> decremented. As a result, setting the maxTotalPerKey do not work properly, 
> which can cause a serious issue when maxTotalPerKey is set to for example 1.



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)

Reply via email to