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

Thread deadlock issue in GenericKeyedObjectPool borrowObject()

    XMLWordPrintableJSON

    Details

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

      Description

      I am a new user of common-pools and I was having some weird behavior with GenericKeyedObjectPool

      GenericKeyedObjectPool: 1074:1077

      public Object borrowObject(Object key) throws Exception {
      long starttime = System.currentTimeMillis();
      Latch latch = new Latch(key); ---> This object is tried to be used for managing pool size by calling wait()/notify()

      My thinking is this should be a shared/global object and not created new for each call ??

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              bbansal bhupesh bansal
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: