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

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.3
    • 1.4
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: