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

GenericObjectPool constructor with GenericObjectPool.Config ignores softMinEvictableIdleTimeMillis

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.3, 2.0
    • Fix Version/s: 2.0
    • Labels:
      None

      Description

      The GenericObjectPool(PoolableObjectFactory factory, GenericObjectPool.Config config) constructor ignores the setting of softMinEvictableIdleTimeMillis that is made in config.

      Reason: The abovementioned constructor calls the wrong constructor

      GenericObjectPool(PoolableObjectFactory factory, int maxActive, byte whenExhaustedAction, long maxWait, int maxIdle, int minIdle, boolean testOnBorrow, boolean testOnReturn, long timeBetweenEvictionRunsMillis, int numTestsPerEvictionRun, long minEvictableIdleTimeMillis, boolean testWhileIdle)

      instead of the correct one

      GenericObjectPool(PoolableObjectFactory factory, int maxActive, byte whenExhaustedAction, long maxWait, int maxIdle, int minIdle, boolean testOnBorrow, boolean testOnReturn, long timeBetweenEvictionRunsMillis, int numTestsPerEvictionRun, long minEvictableIdleTimeMillis, boolean testWhileIdle, long softMinEvictableIdleTimeMillis)

        Attachments

        1. GenericObjectPool.patch
          1.0 kB
          Christoph Grothaus

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              cgro Christoph Grothaus
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: