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

GenericObjectPool hangs forever in borrowObject when newly created object is not validated

    Details

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

      Description

      If your set GenericObjectPool parameters such as: maxActive = 1 and whenExhaustedAction to block, testOnBorrow to true, call borrowObject that fails in validation of newly created object then second call of borrowObject will stuck.

        Attachments

        1. borrowObject.patch
          1.0 kB
          Bushov Alexander
        2. Test.java
          2 kB
          Bushov Alexander

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              bouchov Bushov Alexander
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: