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

GenericKeyedObjectPool: clear() clears the keyed pool but does not decrease the item counter

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5.6
    • 1.5.7
    • None

    Description

      If function 'clear(Object key)' in GenericKeyedObjectPool is called onto a keyed pool, the ObjectQueue (= the keyed pool) is removed from the pool list.
      Its items are deleteded in the function 'destroy()' afterwards. But as the ObjectQueue is already removed, the itemcounter _totalInternalProcessing is
      never decreased.

      As a result of this bug the pool exhausts even if the pool is empty.

      The solution is to decrease the counter _totalInternalProcessing in 'destroy()' also if ObjectQueue in null.

      Attachments

        Activity

          People

            Unassigned Unassigned
            helged Helge Dannenberg
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: