[
https://issues.apache.org/jira/browse/POOL-243?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Phil Steitz resolved POOL-243.
------------------------------
Resolution: Fixed
Thanks for reporting this and correctly diagnosing the problem. Fixed in
r1550655.
> 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
> Fix For: 2.0.1
>
>
> 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)