Commons Pool
  1. Commons Pool
  2. POOL-152

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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.

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

        Activity

        Bushov Alexander created issue -
        Bushov Alexander made changes -
        Field Original Value New Value
        Attachment Test.java [ 12423579 ]
        Attachment borrowObject.patch [ 12423580 ]
        Mark Thomas made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 1.5.4 [ 12314244 ]
        Resolution Fixed [ 1 ]
        Phil Steitz made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development