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

GenericObjectPool constructor with GenericObjectPool.Config ignores softMinEvictableIdleTimeMillis

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.3, 2.0
    • 2.0
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: