Issue Details (XML | Word | Printable)

Key: POOL-117
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Unassigned
Reporter: Phil Steitz
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Commons Pool

StackObjectPool, SoftReferenceObjectPool borrowObject can loop indefinitely when new instances fail validation

Created: 19/Dec/07 11:12 PM   Updated: 20/Dec/07 12:33 AM
Return to search
Component/s: None
Affects Version/s: 1.3
Fix Version/s: 1.4

Time Tracking:
Not Specified

Issue Links:
Reference
 

Resolution Date: 20/Dec/07 12:33 AM


 Description  « Hide
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.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
No work has yet been logged on this issue.