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

Object creation exception do not decrement createCount in GenericKeyedObjectPool implementation

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.1
    • Labels:
      None

      Description

      When KeyedPooledObjectFactory method create(K key), covering the object pool lifecycle, fails to create an object and throws an exception, the created object counter (createCount) of particular ObjectDeque do not gets decremented. As a result, setting the maxTotalPerKey do not work properly, which can cause a serious issue when maxTotalPerKey is set to for example 1.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sabo.michal@gmail.com Michal Sabo
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: