| Version | Date | Description |
|---|---|---|
| 1.6 | 2012-01-07 | Adds generics and requires Java 5. |
| 1.5.7 | 2011-12-20 | This is a patch release, including bugfixes only. |
| 1.5.6 | 2011-04-03 | This is a patch release, including bugfixes only. |
| 1.5.5 | 2010-09-10 | This is a patch release, including bugfixes, documentation improvements and some deprecations in preparation for pool 2.0. |
| 1.5.4 | 2009-11-20 | This is a patch release containing a fix for POOL-152, a regression introduced in version 1.5. |
| 1.5.3 | 2009-09-21 | This is a patch release containing a fix for POOL-149, a regression introduced in version 1.5. |
| 1.5.2 | 2009-07-12 | This is a patch release containing fixes for POOL-146 and POOL-147, regressions introduced in version 1.5. |
| 1.5.1 | 2009-06-16 | This is a patch release containing a fix for POOL-144, a regression introduced in version 1.5. |
| 1.5 | 2009-06-10 | This is a maintenance release including several important bug fixes. This release is source and binary compatible with versions 1.3 and 1.4 of commons pool. In addition to resolving some important concurrency-related bugs (POOL-135, POOL-125, POOL-29 POOL-107) this release implements a fairness algorithm to ensure that threads waiting for available object instances from GenericObjectPools and GenericKeyedObjectPools are served in request arrival order. |
| 1.4 | 2008-01-15 | This is a maintenance release including numerous bug fixes. This release is source and binary compatible with version 1.3 of commons pool, but there are some behavior changes introduced to resolve bugs, remove ambiguity or improve robustness. Among these are the change in default behavior of GenericObjectPool and GenericKeyedObjectPool from FIFO back to LIFO queues (as in 1.2 and earlier). The LIFO/FIFO behavior is now configurable. Some of the extra synchronization included in version 1.3 was removed / refactored to improve performance. The javadoc has also been made more complete and explicit. See the detailed list of changes below for specifics on fixed bugs and behavior changes in Commons Pool 1.4. This version of Commons Pool depends only on JDK version 1.3 or higher. Classes implementing pools are all intended to be threadsafe. |
| 1.3 | 2006-04-06 | 1.x bugfix release |
| 1.2 | 2004-06-07 | bugfixes |
| 1.1 | 2003-10-20 | bugfixes |
| 1.0.1 | 2002-08-12 | |
| 1.0 | 2002-05-04 |
| Type | Changes | By |
|---|---|---|
| Support Java 1.5 Generics in version 1.x. Fixes POOL-208. | ggregory |
| Type | Changes | By |
|---|---|---|
| Awaken threads waiting on borrowObject when a pool has been closed and have them throw IllegalStateException. Prior to the fix for this issue, threads waiting in borrowObject when close was invoked on GOP or GKOP would block indefinitely. Fixes POOL-189. Thanks to Bill Speirs. | psteitz |
| Corrected total internal processing counter update in destroy. Prior to the fix for this issue, clear(key) was leaking capacity associated with elements in the pool being cleared. Fixes POOL-192. Thanks to Helge Dannenberg. | psteitz |
| Type | Changes | By |
|---|---|---|
| Correctly handle an InterruptedException when waiting for an object from the pool. Fixes POOL-179. Thanks to Axel Grossmann. | markt |
| Only stop tracking objects for a key when there are no idle objects, no active objects and no objects being processed. Fixes POOL-180. | markt |
| Make BaseObjectPool.isClosed() public. Fixes POOL-181. | markt |
| Correct bug that could lead to inappropriate pool starvation when evict() and borrowObject() are called concurrently. Fixes POOL-184. | markt |
| Fix performance issues when object destruction has latency. Thanks to psteitz. | markt |
| Type | Changes | By |
|---|---|---|
| In preparation for pool 2.0, deprecated direct access to protected fields and setFactory methods. In pool 2.0, pool object factories will be immutable. Fixes POOL-169. | psteitz |
| Made GenericKeyedObjectPool._minIdle volatile. Fixes POOL-158. | psteitz |
| Made the default context class loader for the eviction thread the same loader that loads the library to prevent memory leaks in multiple class loader environments. Fixes POOL-161. | markt |
| GenericKeyedObjectPool.destroy could use entrySet() rather than keySet() followed by get() Fixes POOL-166. | sebb |
| GenericObjectPool and GenericKeyedObjectPool setFactory methods destroy idle instances in the pool by contract. Prior to the fix for this issue, newly set factories were being used to destroy idle instances, rather than the factories used to create them. The setFactory methods have also been deprecated, to be removed in version 2.0. Fixes POOL-157. Thanks to David Hu. | psteitz |
| ObjectPool classes can ignore Throwable. Added consistent handling for Throwables that are normally swallowed including always re-throwing certain Throwables (e.g. ThreadDeath). Fixes POOL-156. | sebb |
| When waiting threads are interrupted, GOP, GKOP may leak capacity. Fixes POOL-162. | markt |
| Documentation for the close method in GenericObjectPool and GenericKeyedObjectPool incorrectly states that this method does not clear the pool. Fixes POOL-154. Thanks to Glen Mazza. | psteitz |
| Type | Changes | By |
|---|---|---|
| GenericObjectPool can block forever in borrowObject when the pool is exhausted and a newly created object fails validation. When borrowing an object if a new object is created but validate fails, the latch should not be returned to the queue as an exception will be thrown. Fixes POOL-152. Thanks to Bushov Alexander. | markt |
| Type | Changes | By |
|---|---|---|
| Fix case where a thread could end up waiting indefinitely even if objects were available. Also fixes a couple of leaks in the internal processing object count that could lead to pool exhaustion. Fixes POOL-149. Thanks to Shuyang Zhou. | markt |
| Type | Changes | By |
|---|---|---|
| Handle the case where one key has reached maxActive but other keys have not. Prior to the fix for this issue, threads waiting on objects from keyed pools still having instances available could be blocked by a thread requesting an instance from an exhausted pool. Fixes POOL-146. | markt |
| Fix case where a thread could end up waiting indefinitely even if objects were available. Fixes POOL-147. Thanks to Giambattista Bloisi. | markt |
| Ensure that the GenericKeyedObjectPool idle object evictor does not visit the same instance more than once per eviction run. Fixes POOL-145. | markt |
| Type | Changes | By |
|---|---|---|
| When exhausted action is set to WHEN_EXHAUSTED_BLOCK, maxwait is positive and client threads time out waiting for idle objects, capacity can be "leaked" from GenericObjectPools and GeneritCkeyedObjectPools. Fixes POOL-144. | markt |
| Type | Changes | By |
|---|---|---|
| StackKeyedObjectPool.getNumActive() needs to be synchronized. Fixes POOL-139. Thanks to Sebastian Bazley. | markt |
| Inconsistent synchronization in GenericObjectPool; constant fields should be final. Fixes POOL-137. Thanks to Sebastian Bazley. | markt |
| GenericObjectPool not FIFO with respect to borrowing threads. Fixes POOL-75. Thanks to Takayuki Kaneko and Gordon Mohr. | markt |
| _numActive > _maxActive under load Fixes POOL-135. | markt |
| Insufficient control over concurrent access to pooled objects by Evictor, client threads. Fixes POOL-125. | markt |
| Number of connections created has crossed more than maxActive. Fixes POOL-107. | markt |
| java.util.Timer in EvictionTimer does not recover from OutOfMemoryError in Evictor. Fixes POOL-122. | markt |
| Failed object creation may result in invalid active count in GKOP. Fixes POOL-133. | markt |
| Type | Changes | By |
|---|---|---|
| Fixed constructor which was ignoring maxTotal parameter: GenericKeyedObjectPool(KeyedPoolableObjectFactory factory, int maxActive, byte whenExhaustedAction, long maxWait, int maxIdle, int maxTotal, boolean testOnBorrow, boolean testOnReturn, long timeBetweenEvictionRunsMillis, int numTestsPerEvictionRun, long minEvictableIdleTimeMillis, boolean testWhileIdle) | sandymac |
| Changed StackKeyedObjectPool to discard stalest, not freshest, idle object when maxSleeping is reached. | sandymac |
| Allowed blocked threads in GenericObjectPool borrowObject to be interrupted. Fixes POOL-102. Thanks to John Sumsion. | psteitz |
| Fixes to address idle object eviction and LIFO/FIFO behavior reported in POOL-86. Made LIFO/FIFO behavior configurable for GenericObjectPool and GenericKeyedObjectPool, with default set back to LIFO (reverting to 1.2 behavior). Fixed GOP, GKOP evict method and added tests to ensure objects are visited in oldest-to-youngest order. Changed backing store for GOP, GKOP pools back to Commons Collections CursorableLinkedList (brought this class in, repackaged with package scope). Fixes POOL-86. | psteitz |
| Changed the default setting for Config.softMinEvictableIdleTimeMillis to GenericObjectPool.DEFAULT_SOFT_MIN_EVICTABLE_IDLE_TIME_MILLIS (was being incorrectly defaulted to DEFAULT_MIN_EVICTABLE_IDLE_TIME_MILLIS). Fixes POOL-110. Thanks to Alexander Pogrebnyak. | psteitz |
| Added a wrapper for the shared idle object eviction timer for all pools. The wrapper class wraps the Timer and keeps track of how many pools are using it. If no pools are using the timer, it is canceled. This prevents a thread being left running which, in application server environments, can lead to memory leaks and/or prevent applications from shutting down or reloading cleanly. Fixes POOL-97. Thanks to Mark Thomas. | psteitz |
| Reduced synchronization in GenericObjectPool, GenericKeyedObjectPool. Factory method activations within synchronized blocks were causing performance problems in DBCP and other applications where factory methods could block. Fixes both POOL-93 and POOL-108. Fixes POOL-93. Thanks to Mark Thomas. | psteitz |
| Made _testOnBorrow, _testOnReturn volatile and removed synchronization in associated getters and setters in GenericObjectPool, GenericKeyedObjectPool. Made getNumIdle synchronized in StackKeyedObjectPool. Fixes POOL-113. | psteitz |
| Fixed an error in the GenericKeyedObjectPool constructor that takes a Config instance as a parameter. The minIdle setting in the Config was being ignored by the constructor. Fixes POOL-116. | psteitz |
| Made behavior on instance validation failure consistent across pools, eliminating possible infinite loops in StackObjectPool, StackKeyedObjectPool, SoftReferenceObjectPool when factory fails to create valid objects. Fixes POOL-117. | |
| When no factory has been defined, addObject now throws IllegalStateExecption instead of NullPointerException for all pools. | sandymac |
| SoftReferenceObjectPool. Improved the accuracy of getNumIdle by "pruning" references to objects that have been garbage collected. | sandymac |
| GenericObjectPool, GenericKeyedObjectPool, SoftReferenceObjectPool, StackObjectPool. Eliminated IllegalStateExceptions when the following operations are attempted on a closed pool: getNumActive, getNumIdle, returnObject, invalidateObject. In each case, the operation is allowed to proceed, reporting the state of the pool that is being shut down, or destroying objects returning to the closed pool. | sandymac |
| StackObjectPool, SoftReferenceObjectPool, GenericKeyedObjectPool. Allowed borrowObject to continue (either examining additional idle instances or with makeObject) when an exception is encountered activating an idle object instead of propagating the exception to the client. Also made addObject propagate (not swallow) exceptions when passivating newly created instances. | sandymac |
| StackKeyedObjectPool. Added validation check for objects returned from borrowObject. | psteitz |
| BaseObjectPool, BaseKeyedObjectPool. Instead of throwing UnsupportedOperationException, the base class implementations of getNumIdle and getNumActive return negative values. The base implementation of close in BaseObjectPool no longer throws IllegalStateException when invoked on an already closed pool. | sandymac |
| Type | Changes | By |
|---|---|---|
| GenericKeyedObjectPoolFactory Config Constructor is incorrect | dirkv |
| Not possible to extend GenericObjectPool.returnObject() without affecting addObject() | dirkv |