
| Key: |
POOL-117
|
| Type: |
Bug
|
| Status: |
Resolved
|
| Resolution: |
Fixed
|
| Priority: |
Minor
|
| Assignee: |
Unassigned
|
| Reporter: |
Phil Steitz
|
| Votes: |
0
|
| Watchers: |
0
|
|
If you were logged in you would be able to see more operations.
|
|
|
|
Issue Links:
|
Reference
|
|
|
|
This issue is related to:
|
|
POOL-91
StackObjectPool.borrowObject infinate loop when makeObject returns null
|
|
|
|
|
|
|
| Resolution Date: |
20/Dec/07 12:33 AM
|
|
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.
|
|
Description
|
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. |
Show » |
| No work has yet been logged on this issue.
|
|