Uploaded image for project: 'Commons Pool'
  1. Commons Pool
  2. POOL-117

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.3
    • Fix Version/s: 1.4
    • Labels:
      None

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                psteitz Phil Steitz
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: