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

[pool] GenericObjectPool WHEN_EXHAUSTED_BLOCK behvior could wait almost twice as long as desired

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.3
    • None
    • Operating System: All
      Platform: All

    • 37337

    Description

      Very minor bug: On lines 797 of GenericObjectPool and lines 809 of GenericKeyedObjectPool the code is
      such that if the pool is exhausted and the thread waits and is notified shortly before _maxWait time has
      elapsed then then the thread may end up waiting for another period of _maxWait. Combined with the
      previous wait the thread could have actually waited almost twice the desired time. The correct behavior
      would be to do the math and wait a lesser amount adjusted for the previous wait interval.

      Attachments

        Activity

          People

            Unassigned Unassigned
            sandymac@apache.org Sandy McArthur (from Bugzilla import)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: