commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Phil Steitz (JIRA)" <j...@apache.org>
Subject [jira] Created: (POOL-117) StackObjectPool, SoftReferenceObjectPool borrowObject can loop indefinitely when new instances fail validation
Date Wed, 19 Dec 2007 23:12:43 GMT
StackObjectPool, SoftReferenceObjectPool borrowObject can loop indefinitely when new instances
fail validation
--------------------------------------------------------------------------------------------------------------

                 Key: POOL-117
                 URL: https://issues.apache.org/jira/browse/POOL-117
             Project: Commons Pool
          Issue Type: Bug
    Affects Versions: 1.3
            Reporter: Phil Steitz
            Priority: Minor
             Fix For: 1.4


The borrowObject methods in StackObjectPool, SoftReferenceObjectPool are synchronized and
do not bound the number of attempts to create a valid instance when the pool is exhausted.
 When a new instance is created, if activation or validation fails, the code continues (without
bound) to retry the make-activate-validate sequence.  This can lead to an infinite loop if
the factory is unable to create valid instances.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message