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

Improve exception thrown in GenericObjectPool.borrowObject when pool is exhausted

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.9.0
    • 2.11.0
    • None

    Description

      It would be really nice to include some additional information for the following exception:

      org.apache.commons.pool2.impl.GenericObjectPool.borrowObject
      java.util.NoSuchElementException: Pool exhausted

       

      I suggest showing the following parameters in the exception message:
      Min=x, Max=x, MinIdle=x, MaxIdle=x, Current=x

      Attachments

        Activity

          People

            Unassigned Unassigned
            anikoo Arash Nikoo
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: