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

When waiting threads are interrupted, pool can leak capacity

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5, 1.5.1, 1.5.2, 1.5.3, 1.5.4
    • Fix Version/s: 1.5.5
    • Labels:
      None

      Description

      As reported on commons-dev (http://markmail.org/message/aqb23nnzyy2ar3vs), when waiting threads are interrupted, GOP, GKOP may leak capacity. I do not yet have a test case to confirm this, but I suspect that the problem reported by the user is caused by a missing _allocationQueue.remove(latch) before rethrowing InterruptedException in borrowObject.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: