Apache Commons Pool Release Notes
Release History
Version |
Date |
Description |
2.12.2 |
YYYY-MM-DD |
This is a feature and maintenance release. Java 8 or later is required. |
2.12.1 |
2025-01-19 |
This is a feature and maintenance release. Java 8 or later is required. |
2.12.0 |
2023-09-30 |
This is a feature and maintenance release. Java 8 or later is required. |
2.11.1 |
2021-08-18 |
This is a maintenance release (Java 8 or above). |
2.11.0 |
2021-08-08 |
This is a feature release (Java 8 or above). |
2.10.0 |
2021-05-28 |
This is a feature release (Java 8 or above). |
2.9.0 |
2020-09-25 |
This is a minor release (Java 8 or above). |
2.8.1 |
2020-07-27 |
This is a maintenance release (Java 8 or above). |
2.8.0 |
2019-12-05 |
This is a maintenance release (Java 8 or above). |
2.7.0 |
2019-07-25 |
This is a feature release (Java 8 or above). |
2.6.2 |
2019-03-05 |
This is a maintenance release (Java 7 or above). |
2.6.1 |
2019-02-08 |
This is a maintenance release (Java 7 or above). |
2.6.0 |
2018-07-06 |
This is a maintenance release (Java 7 or above). |
2.5.0 |
2017-12-16 |
This is a minor release (Java 7 or above). |
2.4.3 |
2017-10-24 |
This is a patch release, including bug fixes only (Java 6 or above). |
2.4.2 |
2015-08-01 |
This is a patch release, including bug fixes only (Java 6 or above). |
2.4.1 |
2015-05-30 |
This is a patch release (Java 6 or above), replacing a defective binary jar in version 2.4. Other than the build configuration, the source distribution for version 2.4.1 is identical to version 2.4. |
2.4 |
2015-05-27 |
This is a maintenance release that includes bug fixes and minor enhancements (Java 6 or above). |
2.3 |
2014-12-30 |
This is a maintenance release that includes bug fixes and minor enhancements (Java 6 or above). |
2.2 |
2014-02-24 |
This is a maintenance release (Java 6 or above) that adds a new testOnCreate configuration option and fixes a small number of bugs. |
2.1 |
2013-12-30 |
This is a maintenance release (Java 6 or above) that includes a small number of new features as well as including bugfixes and test case improvements. |
2.0 |
2013-11-11 |
This is a major new release (Java 6 or above) that provides significant performance improvements in high concurrency environments. Pools now provide a mechanism for tracking objects that have been borrowed from the pool but not returned. There have been numerous API changes to support these and other new features as well as to clarify behavior and improve consistency across the API. This release requires JDK level 1.6 or above. |
1.6 |
2012-01-07 |
Adds generics (Java 5 or above). |
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 |
|
Release 2.12.2 – YYYY-MM-DD
Type |
Changes |
By |
 |
Remove -nouses directive from maven-bundle-plugin. OSGi package imports now state 'uses' definitions for package imports, this doesn't affect JPMS (from org.apache.commons:commons-parent:80). Thanks to Gary Gregory. |
ggregory |
 |
The maximum wait time for GenericObjectPool.borrowObject(*) may exceed expectations due to a spurious thread wakeup.
The remaining duration was incorrectly calculated and the method did not end up waiting long enough.
Recompute the remaining duration an additional time when we block when exhausted. Fixes POOL-418. Thanks to Gary Gregory. |
ggregory |
 |
Fix site link from the About page to the Download page, see also #387. Thanks to Wei Guo, Gary Gregory. |
ggregory |
 |
Bump org.apache.commons:commons-parent from 79 to 81. Thanks to Gary Gregory. |
ggregory |
Release 2.12.1 – 2025-01-19
Type |
Changes |
By |
 |
Use java.time.Instant precision in org.apache.commons.pool2.impl.ThrowableCallStack.Snapshot throwable message. Thanks to Gary Gregory. |
ggregory |
 |
GenericObjectPool.borrowObject(Duration) doesn't obey its borrowMaxWait Duration argument when the argument is different from GenericObjectPool.getMaxWaitDuration(). Thanks to Gary Gregory. |
ggregory |
 |
The maximum wait time for GenericObjectPool.borrowObject(*) may exceed expectations due to a spurious thread wakeup. Fixes POOL-418. Thanks to Gary Gregory. |
ggregory |
 |
Javadoc is missing its Overview page. Thanks to Gary Gregory. |
ggregory |
 |
Migrate site generation templates to https://maven.apache.org/xsd/xdoc-2.0.xsd. Thanks to Gary Gregory. |
ggregory |
 |
Bump org.apache.commons:commons-parent from 62 to 79. Thanks to Gary Gregory. |
ggregory |
 |
[test] Bump commons-lang3 from 3.13.0 to 3.17.0. Thanks to Gary Gregory. |
ggregory |
 |
[site] Pickup org.apache.bcel:bcel version from parent POM. Thanks to Gary Gregory. |
ggregory |
 |
[test] Bump org.ow2.asm:asm-util from 9.5 to 9.7.1. Thanks to Gary Gregory. |
ggregory |
Release 2.12.0 – 2023-09-30
Type |
Changes |
By |
 |
Ensure that capacity freed by invalidateObject is available to all keyed pools. Fixes POOL-401. |
psteitz |
 |
Ensure capacity freed by clear is made available to GKOP borrowers. Fixes POOL-391. Thanks to Codievilky August. |
psteitz |
 |
Check blockWhenExhausted in hasBorrowWaiters #116. Fixes POOL-402. Thanks to Cp-John, Phil Steitz, Bruno P. Kinoshita, Gary Gregory. |
ggregory |
 |
Simplify test assertion with similar call but simpler. #131. Thanks to Arturo Bernal. |
ggregory |
 |
NullPointerException GenericKeyedObjectPool.invalidateObject(GenericKeyedObjectPool.java:1343). Fixes POOL-405. Thanks to Gary Gregory. |
ggregory |
 |
Fix a typo related to KeyedPooledObjectFactory on the site and Javadoc. Fixes POOL-408. Thanks to Zhenyu Luo, Gary Gregory. |
ggregory |
 |
Fail-fast on null input for DefaultPooledObjectInfo.DefaultPooledObjectInfo(PooledObject) with a NullPointerException. Thanks to Gary Gregory. |
ggregory |
 |
Improve BaseGenericObjectPool's JMX Register performance when creating many pools. Fixes POOL-393. Thanks to Shichao Yuan, Phil Steitz, Niall Pemberton. |
niallp |
 |
Null-guard in GenericObjectPool.use(T) like other call sites of GenericObjectPool.getPooledObject(T). Thanks to Réda Housni Alaoui, Gary Gregory. |
ggregory |
 |
Guard against NPE when deregistering a key at the end of borrow. Fixes POOL-411. Thanks to Richard Eckart de Castilho, Gary Gregory. |
ggregory |
 |
Make private GenericKeyedObjectPool.ObjectDeque class static. Thanks to Gary Gregory. |
ggregory |
 |
Make private BaseGenericObjectPool.StatsStore class static. Thanks to Gary Gregory. |
ggregory |
 |
[StepSecurity] ci: Harden GitHub Actions #225. Thanks to step-security-bot, Gary Gregory. |
ggregory |
 |
Fix possible NPE in DefaultPooledObjectInfo.getPooledObjectToString(). Thanks to Gary Gregory. |
ggregory |
 |
Fix possible NPE in DefaultPooledObjectInfo.getPooledObjectType(). Thanks to Gary Gregory. |
ggregory |
 |
Add PooledObject.getFullDuration(). Thanks to Gary Gregory. |
ggregory |
 |
Add GenericKeyedObjectPool.getKeys(). Thanks to Vamsi Pavan Kumar Sanka, Phil Steitz, Gary Gregory. |
ggregory |
 |
Add KeyedObjectPool.getKeys(). Thanks to Gary Gregory. |
ggregory |
 |
Add github/codeql-action. |
ggregory |
 |
Add BaseGenericObjectPool.Evictor.toString(). |
ggregory |
 |
Make BaseGenericObjectPool implement AutoCloseable. |
ggregory |
 |
Add BaseGenericObjectPool methods that return Duration and deprecate equivalents that return milliseconds as long. |
ggregory |
 |
Add BaseObjectPoolConfig.DEFAULT_DURATION_BETWEEN_EVICTION_RUNS and deprecate BaseObjectPoolConfig.DEFAULT_TIME_BETWEEN_EVICTION_RUNS. |
ggregory |
 |
Bump actions/cache from 2.1.6 to 3.0.10 #117, #138, #158, #174, #178. Thanks to Dependabot, Gary Gregory. |
kinow |
 |
Bump actions/checkout from 2.3.4 to 3.0.2 #109, #112, #134. Thanks to Dependabot, Gary Gregory. |
ggregory |
 |
Bump actions/setup-java from 2 to 3.5.1. Thanks to Gary Gregory. |
kinow |
 |
Bump spotbugs from 4.3.0 to 4.7.3 #94, #99, #106, #114, #122, #129, #137, #155, #168, #187. Thanks to Dependabot. |
ggregory |
 |
Bump spotbugs-maven-plugin from 4.3.0 to 4.7.3.0 #102, #110, #119, #125, #128, #139, #149, #157, #161, #169, #180, #190. Thanks to Dependabot. |
ggregory |
 |
Bump junit-bom from 5.8.0-M1 to 5.9.1 #96, #100, #103, #120, #160, #172. Thanks to Dependabot. |
ggregory |
 |
Bump checkstyle from 8.45.1 to 9.3 #97, #104, #111, #121, #126, #132. Thanks to Dependabot. |
ggregory |
 |
Bump maven-checkstyle-plugin from 3.1.2 to 3.2.0 #166. Thanks to Dependabot. |
ggregory |
 |
Bump maven-pmd-plugin from 3.14.0 to 3.19.0 #101, #153, #170. Thanks to Dependabot, Gary Gregory. |
ggregory |
 |
Bump pmd from 6.44.0 to 6.52.0. Thanks to Gary Gregory. |
ggregory |
 |
Bump biz.aQute.bndlib from 5.3.0 to 6.4.1 #105, #118, #135, #151, #154, #191, #223. Thanks to Dependabot. |
ggregory |
 |
Bump maven-bundle-plugin from 5.1.3 to 5.1.8 #127, #146, #148, #159, #164. Thanks to Dependabot. |
kinow |
 |
Bump maven-surefire-plugin from 3.0.0-M7 to 3.0.0-M6 #142, #152. Thanks to Dependabot. |
kinow |
 |
Bump asm-util from 9.2 to 9.5 #141, #179, #220. Thanks to Dependabot. |
kinow |
 |
Bump commons-parent from 52 to 58 #173, #195, #204, #222. Thanks to Gary Gregory, Dependabot. |
ggregory |
 |
Bump japicmp-maven-plugin from 0.15.3 to 0.16.0. Thanks to Gary Gregory. |
ggregory |
 |
Bump animal-sniffer-maven-plugin 1.20 to 1.21. Thanks to Gary Gregory. |
ggregory |
 |
Bump Apache Commons BCEL 6.5.0 to 6.7.0 #194. Thanks to Gary Gregory, Dependabot. |
ggregory |
 |
Bump commons-lang3 from 3.12.0 to 3.13.0. Thanks to Gary Gregory. |
ggregory |
Release 2.11.1 – 2021-08-18
Type |
Changes |
By |
 |
Getting a PooledObject's active duration returns a negative duration when the object is borrowed but not returned. Affects:
- PooledObject.getActiveDuration()
- PooledObject.getActiveTime()
- PooledObject.getActiveTimeMillis() Thanks to Gary Gregory. |
ggregory |
 |
The default implementation of TrackedUse.getLastUsedInstant() uses seconds instead of milliseconds.
This interface is not implemented within Apache Commons Pool but affects Apache Commons DBCP. Thanks to Gary Gregory. |
ggregory |
 |
DefaultPooledObject.getIdleTime() drops nanoseconds on Java 9 and greater. Thanks to Gary Gregory. |
ggregory |
 |
Fix field label in BaseGenericObjectPool toString() builder: From timeBetweenEvictionRunsMillis to durationBetweenEvictionRuns. Thanks to Gary Gregory. |
ggregory |
 |
Fix field label in BaseObjectPoolConfig toString() builder: From maxWaitMillis to maxWaitDuration. Thanks to Gary Gregory. |
ggregory |
 |
Fix field label in NoSuchElementException message for GenericObjectPool.borrowObject(Duration): From borrowMaxWaitMillis to borrowMaxWaitDuration. Thanks to Gary Gregory. |
ggregory |
 |
Reimplement DefaultPooledObject.getIdleDuration() using Duration computation. Thanks to Gary Gregory. |
ggregory |
 |
Reimplement BaseGenericObjectPool.maxBorrowWait as a Duration instead of a long. Thanks to Gary Gregory. |
ggregory |
 |
Minors Changes #89. Thanks to Arturo Bernal. |
ggregory |
 |
Bump checkstyle from 8.45 to 8.45.1 #93. Thanks to Dependabot. |
ggregory |
 |
Bump spotbugs from 4.2.3 to 4.3.0 and ignore new medium warnings EI_EXPOSE_REP and EI_EXPOSE_REP2. Thanks to Dependabot. |
ggregory |
Release 2.11.0 – 2021-08-08
Type |
Changes |
By |
 |
Fix "[WARNING] Old version of checkstyle detected. Consider updating to >= v8.30." Update Checktyle to 8.44. Thanks to Gary Gregory. |
ggregory |
 |
Make Duration setters use their respective default values when null. Thanks to Gary Gregory. |
ggregory |
 |
Call swallowException(Exception) instead of printing exceptions to the console in GenericKeyedObjectPool.removeAbandoned(AbandonedConfig) and GenericObjectPool.removeAbandoned(AbandonedConfig). Thanks to Gary Gregory. |
ggregory |
 |
Fix Javadoc link reference #91. Thanks to Arturo Bernal. |
ggregory |
 |
No need to initialize to default values. #90. Thanks to Arturo Bernal. |
ggregory |
 |
Track timestamps with Instants instead of longs.
There is currently no increased precision on Java 8, but starting with Java 9, the JRE SystemClock precision is increased usually down to microseconds, or tenth of microseconds, depending on the OS, Hardware, and JVM implementation.
Add and use:
- DefaultPooledObject.getCreateInstant()
- DefaultPooledObject.getLastUsedInstant()
- PooledObject.getCreateInstant()
- PooledObject.getLastBorrowInstant()
- PooledObject.getLastReturnInstant()
- PooledObject.getLastUsedInstant()
- TrackedUse#getLastUsedInstant() Thanks to Gary Gregory. |
ggregory |
 |
Add BaseObjectPoolConfig.setEvictorShutdownTimeoutDuration(Duration), deprecate setEvictorShutdownTimeoutMillis(Duration). Thanks to Gary Gregory. |
ggregory |
 |
Add BaseGenericObjectPool.{get|set}MaxWaitDuration(Duration) and deprecate {get|set}MaxWaitMillis(long). Thanks to Gary Gregory. |
ggregory |
 |
Add BaseObjectPoolConfig.{get|set}MaxWaitDuration(Duration) and deprecate {get|set}MaxWaitMillis(long). Thanks to Gary Gregory. |
ggregory |
 |
Add and use Duration APIs instead of ints or longs.
- Add and use Duration APIs in BaseGenericObjectPool: getDurationBetweenEvictionRuns(), getEvictorShutdownTimeoutDuration(), getMinEvictableIdleDuration(), getSoftMinEvictableIdleDuration(), setMaxWait(Duration), setMinEvictableIdle(Duration), setSoftMinEvictableIdle(Duration).
- Add and use Duration APIs in BaseObjectPoolConfig: getDurationBetweenEvictionRuns(), getEvictorShutdownTimeoutDuration(),getMinEvictableIdleDuration(), getSoftMinEvictableIdleDuration().
- Add and use Duration APIs in EvictionConfig: getIdleEvictDuration(), getIdleSoftEvictDuration().
- Add and use Duration APIs in PooledObject: getIdleDuration(), getActiveDuration().
- No need to initialize instance variables to their default values.
- Update Javadocs.
- Update toString() implementations with duration labels. Thanks to Gary Gregory. |
ggregory |
 |
Handle validation exceptions during eviction. #85. Fixes POOL-396. Thanks to Jeremy Kong, Phil Steitz. |
ggregory |
 |
Improve exception thrown in GenericObjectPool.borrowObject when pool is exhausted. Added BaseGenericObjectPool.setMessagesStatistics(boolean). Fixes POOL-395. Thanks to Gary Gregory, Arash Nikoo. |
ggregory |
 |
Add and use AbandonedConfig.copy(AbandonedConfig) to fix CPD code duplication issues in GenericKeyedObjectPool and GenericObjectPool. Thanks to Gary Gregory. |
ggregory |
 |
Pull up AbandonedConfig and related methods from GenericKeyedObjectPool and GenericObjectPool to BaseGenericObjectPool (fix for CPD issues).
- BaseGenericObjectPool.getLogAbandoned()
- BaseGenericObjectPool.getRemoveAbandonedOnBorrow()
- BaseGenericObjectPool.getRemoveAbandonedOnMaintenance()
- BaseGenericObjectPool.getRemoveAbandonedTimeout()
- BaseGenericObjectPool.getRemoveAbandonedTimeoutDuration()
- BaseGenericObjectPool.isAbandonedConfig()
- BaseGenericObjectPool.setAbandonedConfig(AbandonedConfig) Thanks to Gary Gregory. |
ggregory |
 |
Bump org.ow2.asm:asm-util from 9.1 to 9.2. Thanks to Gary Gregory. |
ggregory |
 |
Bump com.github.spotbugs:spotbugs from 4.2.3 to 4.3.0. Thanks to Gary Gregory. |
ggregory |
 |
Bump checkstyle from 8.44 to 8.45 #92. Thanks to Dependabot. |
ggregory |
Release 2.10.0 – 2021-05-28
Type |
Changes |
By |
 |
Add and use java.time.Duration APIs timeouts instead of using ints for seconds.
See the site and its API comparison report for a list of the new Duration-based APIs. Thanks to Gary Gregory. |
ggregory |
 |
Implement AbandonedConfig for GenericKeyedObjectPool #67. Thanks to JSurf, Gary Gregory, Phil Steitz. |
ggregory |
 |
Simplify Assertions in tests #77. Thanks to Arturo Bernal. |
ggregory |
 |
Replace C-style array declaration with Java style #80. Thanks to Arturo Bernal. |
ggregory |
 |
Use Objects.equals(); Use Anonymous type; Use method reference instead Lambda; Replace Loop with Collection.removeIf(). #81. Thanks to Arturo Bernal. |
ggregory |
 |
Use diamond operator. #82. Thanks to Arturo Bernal. |
ggregory |
 |
Code clean ups. #83. Thanks to Arturo Bernal. |
ggregory |
 |
Bump spotbugs-maven-plugin from 4.0.4 to 4.2.1 #48, #53, #59, #62. Thanks to Dependabot. |
ggregory |
 |
Bump actions/setup-java from v1.4.2 to v2, #47. Thanks to Dependabot, Gary Gregory. |
ggregory |
 |
Bump junit from 4.13 to 4.13.1 #50. Thanks to Dependabot. |
ggregory |
 |
Bump biz.aQute.bndlib from 5.1.2 to 5.3.0, #51, #66. Thanks to Dependabot. |
ggregory |
 |
Migrate to JUnit 5 #57. Fixes POOL-389. Thanks to Arturo Bernal. |
ggregory |
 |
Minor Improvements #58, #60. Fixes POOL-389. Thanks to Arturo Bernal. |
ggregory |
 |
Bump actions/checkout from v2.3.3 to v2.3.4 #54. Thanks to Dependabot. |
ggregory |
 |
Bump maven-pmd-plugin from 3.13.0 to 3.14.0 #55. Thanks to Dependabot. |
ggregory |
 |
Update commons.japicmp.version 0.14.3 -> 0.15.3. Thanks to Gary Gregory. |
ggregory |
 |
Bump actions/cache from v2 to v2.1.6 #65, #75, #84. Thanks to Dependabot, Gary Gregory. |
ggregory |
 |
Bump maven-checkstyle-plugin from 3.1.1 to 3.1.2 #61. Thanks to Dependabot. |
ggregory |
 |
Bump asm-util from 9.0 to 9.1 #64. Thanks to Dependabot. |
ggregory |
 |
Bump spotbugs from 4.2.1 to 4.2.3 #68, #73, #74. Thanks to Dependabot. |
ggregory |
 |
Bump junit-bom from 5.7.1 to 5.8.0-M1 #76. Thanks to Dependabot, Gary Gregory. |
ggregory |
 |
Bump maven-bundle-plugin from 5.1.1 to 5.1.2 #70. Thanks to Dependabot. |
ggregory |
 |
Bump animal-sniffer-maven-plugin from 1.19 to 1.20. Thanks to Dependabot. |
ggregory |
Release 2.9.0 – 2020-09-25
Type |
Changes |
By |
 |
Object factory destroy method should carry information on activation context. Fixes POOL-387. Thanks to Phil Steitz. |
ggregory |
 |
Update spotbugs from 4.0.6 to 4.1.3, #37, #41, #46. Thanks to Dependabot. |
ggregory |
 |
Update actions/checkout from v2.3.1 to v2.3.3 #56, #45. Thanks to Dependabot. |
ggregory |
 |
Update actions/setup-java from v1.4.0 to v1.4.2 #42. Thanks to Dependabot. |
ggregory |
 |
Update optional asm-util from 8.0.1 to 9.0 #44. Thanks to Dependabot. |
ggregory |
Release 2.8.1 – 2020-07-27
Type |
Changes |
By |
 |
Refactored EvictionTimer usage tracking to fix POOL-386 and handle abandoned pools. #32. Fixes POOL-386. Thanks to Phil Steitz, Mark Thomas. |
ggregory |
 |
[Javadoc] Add missing @throws comment in PoolUtils. #27. Thanks to Prodigysov, Gary Gregory. |
ggregory |
 |
Update optional library org.ow2.asm:asm-util from 7.2 to 8.0.1. Fixes POOL-384. Thanks to Gary Gregory. |
ggregory |
 |
Added Automatic-Module-Name to support JPMS #31. Fixes POOL-385. Thanks to scholzi100. |
ggregory |
 |
Update site reports from org.apache.bcel:bcel 6.4.1 to 6.5.0. Thanks to Gary Gregory. |
ggregory |
 |
Update site reports from maven-pmd-plugin 3.12.0 to 3.13.0. Thanks to Gary Gregory. |
ggregory |
 |
Update build from biz.aQute.bnd:biz.aQute.bndlib 5.1.0 -> 5.1.2. Thanks to Gary Gregory. |
ggregory |
 |
Update actions/checkout from v1 to v2.3.1 #33. Thanks to Dependabot. |
ggregory |
 |
Update commons-parent from 50 to 51 #36. Thanks to Dependabot. |
ggregory |
 |
Update Checkstyle plugin from 3.0.0 to 3.1.1. Thanks to Gary Gregory. |
ggregory |
 |
Update JApiCmp from 0.14.1 to 0.14.3. Thanks to Gary Gregory. |
ggregory |
 |
Update animal-sniffer-maven-plugin from 1.16 to 1.19. Thanks to Gary Gregory. |
ggregory |
Release 2.8.0 – 2019-12-05
Type |
Changes |
By |
 |
GenericKeyedObjectPool.returnObject(K, T) should throw IllegalStateException instead of NullPointerException when a key is not found in the pool map. Fixes POOL-374. Thanks to Gary Gregory, Phil Steitz. |
ggregory |
 |
Update optional library cglib from 3.2.12 to 3.3.0. Fixes POOL-375. Thanks to Gary Gregory. |
ggregory |
 |
Fixed regression from original fix for POOL-356 which could result in NPE when destroying objects. Fixes POOL-376. Thanks to Sazzadul Hoque, Phil Steitz. |
psteitz |
 |
Eliminated NPE / ISE exceptions due to keyed pools being prematurely removed. Fixes POOL-326. Thanks to Phil Steitz. |
psteitz |
 |
Update site build from Apache Commons BCEL 6.3.1 to 6.4.1. Thanks to Gary Gregory. |
ggregory |
 |
Update optional library org.ow2.asm:asm-util from 7.1 to 7.2. Fixes POOL-377. Thanks to Gary Gregory. |
ggregory |
 |
Deprecate PoolUtils.prefill(ObjectPool, int) in favor of ObjectPool.addObjects(int). Fixes POOL-378. Thanks to Gary Gregory. |
ggregory |
 |
Deprecate PoolUtils.prefill(KeyedObjectPool, K, int) in favor of KeyedObjectPool.addObjects(K, int). Fixes POOL-379. Thanks to Gary Gregory. |
ggregory |
 |
Deprecate PoolUtils.prefill(KeyedObjectPool, Collection, int) in favor of KeyedObjectPool.addObjects(Collection, int). Fixes POOL-380. Thanks to Gary Gregory. |
ggregory |
 |
Close BufferedOutputStream in test before calling toString on underlying BufferedOutputStream #26. Thanks to emopers. |
ggregory |
 |
[Javadoc] Add missing @throws comment in SoftReferenceObjectPool. #28. Thanks to Prodigysov. |
ggregory |
Release 2.7.0 – 2019-07-25
Type |
Changes |
By |
 |
Update from Java 7 to Java 8. Fixes POOL-364. Thanks to Gary Gregory. |
ggregory |
 |
Update ASM from 7.0 to 7.1. Fixes POOL-365. Thanks to Gary Gregory. |
ggregory |
 |
Update optional library cglib from 3.2.10 to 3.2.12. Fixes POOL-366. Thanks to Gary Gregory. |
ggregory |
 |
Fix typo in package private method name stopEvitor() -> stopEvictor() #22. Fixes POOL-367. Thanks to Per Lundberg. |
ggregory |
 |
Move validation for newly created objects into create(). Fixes #23. Fixes POOL-361. Thanks to Pablo, Phil Steitz, Bruno P. Kinoshita. |
ggregory |
 |
Add org.apache.commons.pool2.PooledObject#getBorrowedCount(). Fixes POOL-370. Thanks to Mark Thomas, Gary Gregory. |
ggregory |
 |
Add org.apache.commons.pool2.PooledObject#setRequireFullStackTrace(boolean). Fixes POOL-371. Thanks to Matt Sicker, Gary Gregory. |
ggregory |
 |
CallStackUtils mishandles security manager check part 1. Fixes POOL-352. Thanks to Volker Kleinschmidt. |
ggregory |
Release 2.6.2 – 2019-03-05
Type |
Changes |
By |
 |
Always null out org.apache.commons.pool2.impl.BaseGenericObjectPool.evictionIterator to match org.apache.commons.pool2.impl.BaseGenericObjectPool.evictor. Fixes POOL-362. |
ggregory |
 |
Evictor Thread prevents Spring Context shutdown in standalone app. Fixes POOL-363. Thanks to Josh Landin. |
ggregory |
 |
The commons-pool-evictor-thread should run as a Deamon. Fixes POOL-348. Thanks to Josh Landin. |
ggregory |
Release 2.6.1 – 2019-02-08
Type |
Changes |
By |
 |
Correct validateObject with concurrent borrowObject. Fixes POOL-340. Thanks to Pavel Kolesov. |
struberg |
 |
Fix deadlock on massive concurrent requests. Fixes POOL-356. |
struberg |
 |
Update optional library cglib from 3.2.6 to 3.2.9. Fixes POOL-345. |
ggregory |
 |
Move common configuration setter to BaseGenericObjectPool #9. Fixes POOL-346. Thanks to Michael Chen. |
ggregory |
 |
Method borrowObject waits for maxWaitMillis over in pool full. Fixes POOL-347. Thanks to Shunsuke Nakamura. |
ggregory |
 |
Update optional library asm-util from 6.2 to 7.0. Fixes POOL-349. |
ggregory |
 |
NullPointerException closing multiple GenericObjectPools. Fixes POOL-359. Thanks to Michael Wintermeyer, Gary Gregory. |
ggregory |
 |
Update optional library cglib from 3.2.9 to 3.2.10. Fixes POOL-360. |
ggregory |
 |
Threading issue, NullPointerException and IllegalStateException in GenericKeyedObjectPool. Fixes POOL-326. Thanks to Chris Allison, Phil Steitz. |
ggregory |
 |
CallStackUtils mishandles security manager check (partial fix.). Fixes POOL-352. Thanks to Volker Kleinschmidt, Gary Gregory. |
ggregory |
Release 2.6.0 – 2018-07-06
Type |
Changes |
By |
 |
GenericObjectPool's borrowObject lock if create() fails with Error. Fixes POOL-336. Thanks to Wolfgang Glas. |
ggregory |
 |
Update optional library cglib from 3.2.5 to 3.2.6. Fixes POOL-339. |
ggregory |
 |
Ensure cancelled eviction tasks are removed from scheduler. Fixes POOL-337. Thanks to Reinald Verheij. |
markt |
 |
Update optional library asm-util from 6.0 to 6.1.1. Fixes POOL-341. |
ggregory |
 |
Update optional library asm-util from 6.1.1 to 6.2. Fixes POOL-342. |
ggregory |
 |
GenericObjectPool constructor may throw an exception under OSGi. Fixes POOL-338. Thanks to Michael C, Gary Gregory. |
ggregory |
 |
org.apache.commons.pool2.impl.GenericObjectPool.getFactoryType() throws java.lang.ClassCastException. Fixes POOL-324. Thanks to Jay Xu, Gary Gregory. |
ggregory |
 |
Delete repeated call startEvictor. Fixes POOL-344. Thanks to Yulin Wang. |
ggregory |
Release 2.5.0 – 2017-12-16
Type |
Changes |
By |
 |
Update from Java 6 to 7. Fixes POOL-331. |
ggregory |
![]() |
Drop Ant build. Fixes POOL-330. |
ggregory |
 |
ObjectPool and KeyedObject pool should extend Closeable. Fixes POOL-332. |
ggregory |
 |
Update optional dependency asm-util from 5.2 to 6.0. Fixes POOL-333. |
ggregory |
 |
org.apache.commons.pool2.impl.ThrowableCallStack.Snapshot is missing serialVersionUID. Fixes POOL-334. |
ggregory |
 |
Make abandoned logging stack trace requirements configurable. This also reverts
the default behavior introduced by POOL-320. Fixes POOL-335. |
mattsicker |
 |
Make abandoned logging stack trace requirements configurable. This also reverts
the default behavior introduced by POOL-320. Fixes POOL-335. |
mattsicker |
Release 2.4.3 – 2017-10-24
Type |
Changes |
By |
 |
Documentation with repeated words (sources, tests, and examples). Fixes POOL-328. Thanks to Lorenzo Solano Martinez. |
ggregory |
 |
Correction of default value of softMinEvictableIdleTimeMillis in BaseObjectPoolConfig. Fixes POOL-317. Thanks to KeiichiFujino. |
ggregory |
 |
Fix misspellings from "destory" to "destroy". Fixes POOL-309. Thanks to jolestar, Roopam Patekar. |
ggregory |
 |
Ensure BaseGenericObjectPool.IdentityWrapper#equals() follows the expected
contract for equals(). Fixes POOL-306. Thanks to Adrian Crum. |
markt |
 |
Ensure that threads do not block indefinitely if more than maxTotal
threads try to borrow an object at the same time and the factory fails to
create any objects. Fixes POOL-303. |
markt |
 |
Small refactoring of borrowObject() to reduce code duplication. Fixes POOL-280. Thanks to Jacopo Cappellato. |
markt |
 |
Replace inefficient use of keySet with entrySet in GKOP. Fixes POOL-307. Thanks to Anthony Whitford. |
markt |
 |
Ensure that threads using GKOP do not block indefinitely if more than
maxTotal threads try to borrow objects with different keys at the same
time and the factory destroys objects on return. Fixes POOL-310. Thanks to Ivan Iliev. |
markt |
 |
Ensure that any class name used for evictionPolicyClassName represents a
class that implements EvictionPolicy. |
markt |
 |
Add a configurable delay (default 10 seconds) to wait when shutting down
an Evictor to allow the associated thread time to complete any current
evictions and to terminate. Fixes POOL-315. Thanks to KeiichiFujino. |
markt |
 |
Ensure that a call to GKOP preparePool() takes account of other threads
that might create objects concurrently, particularly the Evictor. |
markt |
 |
Use more efficient stack walking mechanisms for usage tracking when possible. Fixes POOL-320. |
mattsicker |
 |
Update optional cglib library from 3.1 to 3.2.5. Fixes POOL-322. |
ggregory |
 |
Update optional OW2 ASM from 5.0.4 to 5.2. Fixes POOL-323. |
ggregory |
Release 2.4.2 – 2015-08-01
Type |
Changes |
By |
 |
Changed default jmxNameBase in BaseObjectPoolConfig to the correct (null)
default. Fixes POOL-298. |
psteitz |
 |
Added PrintWriter flush to DefaultPooledObject's printStackTrace method. Fixes POOL-300. |
psteitz |
Release 2.4.1 – 2015-05-30
Type |
Changes |
By |
 |
Reverted cobertura plugin update that caused binary jar corruption. Fixes POOL-297. |
psteitz |
Release 2.4 – 2015-05-27
Type |
Changes |
By |
 |
Fixed capacity leak when an object is offered from a GenericKeyedObjectPool while it is
being validated by the evictor. Fixes POOL-287. Thanks to Caleb Spare and Thomas Neidhart. |
psteitz |
 |
Eliminated the requirement that objects managed by GenericObjectPool or
GenericKeyedObjectPool be discernible by equals. Prior to this fix,
equal but distinct object instances could not be stored in the same pool. Fixes POOL-283. |
psteitz |
 |
Eliminated the requirement that object equality and hashcodes do not change
while objects are under management by GenericObjectPool or GenericKeyedObjectPool. Fixes POOL-284. |
psteitz |
 |
Fixed class loading for custom EvictionPolicy implementations that may not
be present in the class loader hierarchy of the Pool classes by falling
back to the class loader of the current class. Fixes POOL-289. Thanks to Luke Winkenbach. |
markt |
 |
Ensured that when an instance that has already been returned to a pool is
returned again, the expected IllegalStateException is generated before the
returning object is re-validated or re-passivated. Fixes POOL-285. |
psteitz |
 |
Added preparePool method to GenericObjectPool. Fixes POOL-286. |
psteitz |
 |
Update asm-util from 5.0.3 to 5.0.4. Fixes POOL-296. |
ggregory |
 |
Exposed getEvictionPolicy as protected in BaseGenericObjectPool. Fixes POOL-293. |
psteitz |
Release 2.3 – 2014-12-30
Type |
Changes |
By |
 |
Eliminated possibility that DefaultPoolObject#getIdleTimeMillis() could
return a negative value. Use by pool implementations would not hit this
bug. Fixes POOL-279. Thanks to Jacopo Cappellato. |
psteitz |
 |
Made wrapped BaseProxyHandler.pooledObject volatile. Fixes POOL-275. |
psteitz |
 |
Replace synchronisation with lock-free maxBorrowWaitTimeMillis to
increase scalability. Fixes POOL-277. Thanks to Lucas Pouzac. |
ecki |
 |
Ensure that objects are not validated on borrow when testOnBorrow is set
to false, testOnCreate is set to true and the pool is exhausted at the
point borrowObject() is called. Fixes POOL-276. |
markt |
 |
Fixed error in GenericKeyedObjectPool constructor causing minEvictableIdleTimeMillis
to be used in place of timeBetweenEvictionRunsMillis in eviction timer setup
when a GenericKeyedObjectPoolConfig instance is supplied to the constructor. Fixes POOL-270. Thanks to Michael Berman. |
psteitz |
 |
Fix a threading issue that meant that concurrent calls to close() and
returnObject() could result in some returned objects not being destroyed. Fixes POOL-263. |
markt |
 |
Made fairness configurable for GenericObjectPool, GenericKeyedObjectPool. Fixes POOL-262. |
psteitz |
 |
Correctly mark cglib as an optional dependency and ensure that the OSGi
manifest information reflects that. Fixes POOL-261. |
markt |
 |
Improve performance of statistics collection for pools that extend
BaseGenericObjectPool. |
markt |
 |
Made client wait time statistics accurate when pools are configured to
block indefinitely. Also modified computation to include latency clients
experience due to waiting on factory methods. Fixes POOL-259. |
psteitz |
 |
Update cglib to 3.1 from 3.0. Fixes POOL-273. |
ggregory |
 |
Update asm-util to 5.0.3 from 4.0. Fixes POOL-274. |
ggregory |
 |
Prevent potential memory leaks when the Pool is dereferenced without being
closed. |
markt |
 |
Prevent potential memory leaks with using an Evictor in a container
environment. |
markt |
 |
Protect against a user provided eviction policy throwing an exception and
stopping the Evictor thread. |
markt |
 |
Use the thread context class loader to load custom eviction policies. This
allows application provided eviction policies to be used in a container
environment when the pooling implementation is provided by the container. |
markt |
 |
Fix a potential infinite loop in the underlying Deque implementation. Fixes POOL-281. |
markt |
Release 2.2 – 2014-02-24
Type |
Changes |
By |
 |
Ensure that if an attempt is made to return an object multiple times that
the current active and idle object counts are not corrupted. Fixes POOL-248. Thanks to Warren Chen. |
markt |
 |
Fix Javadoc issues when building docs with Java 8. Fixes POOL-249. Thanks to Ville Skyttä. |
markt |
 |
Fix the remaining Javadoc warnings. |
markt |
 |
Add a new validation configuration option testOnCreate that tests an
object immediately after it is created. |
markt |
Release 2.1 – 2013-12-30
Type |
Changes |
By |
 |
Added missing create counter decrement in GenericKeyedObjectPool create method on factory
exception path. Prior to this fix, exceptions thrown by factory makeObject calls could leak
per key capacity. Fixes POOL-243. Thanks to Michal Sabo. |
psteitz |
 |
Ensured that blocked threads waiting on a depleted pool get served when
objects are destroyed due to validation or passivation failures in
returnObject or when a checked out instance is invalidated. Fixes POOL-240. Thanks to Dan McNulty. |
psteitz |
 |
Expand the coverage of the unit tests. Fixes POOL-241. Thanks to Bruno P. Kinoshita. |
markt |
 |
Provide more control over the names under which Pools are registered in
JMX so components using the pools can register the pools they use under a
related name. |
markt |
 |
Include the number of times an object has been borrowed from the Pool when
the DefaultPooledObject wrapper is used and expose this property via JMX. |
markt |
 |
Remove a duplicate null check and fix some typos in PoolUtils. Fixes POOL-245. Thanks to Bruno P. Kinoshita. |
markt |
 |
Make the toString() method of ErodingKeyedObjectPool consistent with the
other pools. Fixes POOL-246. Thanks to Bruno P. Kinoshita. |
markt |
 |
Further expansion of the coverage of the unit tests. Fixes POOL-245. Thanks to Bruno P. Kinoshita. |
markt |
Release 2.0 – 2013-11-11
Type |
Changes |
By |
 |
Add support for proxy wrappers to ObjectPool and KeyedObjectPool. The
primary advantage of these wrappers is that use of pooled objects is
prevented after they have been returned to the pool. Fixes POOL-211. Thanks to Brad Koehn. |
markt |
 |
Added abandoned object removal (moved from DBCP) to GenericObjectPool. Fixes POOL-229. |
psteitz |
 |
PooledObject.state does not need to be volatile. Fixes POOL-221. |
markt |
 |
Suppress a FindBugs warning. Fixes POOL-220. |
markt |
 |
Use an IODH for PoolUtils.MIN_IDLE_TIMER. Fixes POOL-217. Thanks to sebb. |
markt |
 |
GenericKeyedObjectPool.ensureMinIdle(K) does not need to check getMinIdlePerKey(). Fixes POOL-216. |
markt |
 |
GenericKeyedObjectPool - multiple mutable fields not published safely. Fixes POOL-215. |
markt |
 |
GenericObjectPool.evictionPolicy not thread-safe. Fixes POOL-214. |
markt |
 |
GenericObjectPool allows maxIdle < minIdle. Fixes POOL-212. |
markt |
 |
GenericKeyedObjectPool.clear() has unnecessary null check of objectDequeue. Fixes POOL-207. |
markt |
 |
Classes Generic[Keyed]ObjectPoolConfig are generic - but why?. Fixes POOL-201. |
markt |
 |
GOP/GKOP don't consistently use getters to access fields. Fixes POOL-200. |
markt |
 |
GOP/GKOP evict() method is not synchronized and is not thread-safe. Fixes POOL-199. |
markt |
 |
PooledObject: risky init of lastBorrowTime & lastReturnTime. Fixes POOL-197. |
markt |
 |
PooledObject.getActiveTimeMillis() does not synch. access to lastReturnTime and lastBorrowTime. Fixes POOL-196. |
markt |
 |
Replace synchronized blocks in PoolUtils with Read/Write locks. Fixes POOL-194. |
simonetripodi |
 |
Support Java 1.5 Generics. Fixes POOL-83. |
simonetripodi |
 |
Developer documentation and examples have to be updated once the 2.0 repackaging has been done. Fixes POOL-186. |
simonetripodi |
 |
Switch GOP to use a pooling mechanism based on java.util.concurrent and a
LinkedBlockingQueue implementation from Apache Harmony (originally by Doug
Lea and the JSR-166 expert group). |
markt |
 |
Make deprecated protected attributes private, requiring that access is via
the appropriate getters. |
markt |
 |
Code clean-up. Add missing @Override annotations, remove unused code,
remove deprecated code and unnecessary code. |
markt |
 |
Introduce an Enum (WhenExhaustedAction) to control pool behavior when no
more objects are available to allocate. |
markt |
 |
Remove WhenExhuastedAction.GROW since it is equivalent to
WhenExhuastedAction.FAIL with a maxActive value of Integer.MAX_VALUE. |
markt |
 |
Remove confusing method PoolUtils.ErodingKeyedObjectPool.numIdle(K key). Fixes POOL-188. Thanks to sebb. |
markt |
 |
Guard against multiple returns of the same object to the pool and ensure
that only objects borrowed from the pool are returned to it. Fixes POOL-155. |
markt |
 |
Ensure GKOP.preparePool() throws an exception if no factory has been
defined. Fixes POOL-150. |
markt |
 |
Add the ability to specify a per call wait time when borrowing an object. Fixes POOL-134. |
markt |
 |
Provide a name for the eviction timer thread. Fixes POOL-121. |
markt |
 |
Remove setFactory() method from GOP. |
markt |
 |
Reduce duplication in configuration code. Fixes POOL-173. |
markt |
 |
Re-factor common code into common base classes. Fixes POOL-178. |
markt |
 |
Expose GOP and GKOP attributes via JMX. Fixes POOL-172. |
markt |
 |
Add additional attributes (also accessible via JMX) for monitoring. Fixes POOL-98. |
markt |
 |
Change meaning of zero for maxWait to a maximum wait of zero milliseconds
rather than the unexpected infinite wait. |
markt |
 |
Allow custom eviction policies to be defined. Fixes POOL-100. |
markt |
 |
Add support for proxy wrappers for ObjectPool and KeyedObjectPool. The
primary advantage of using these wrappers is that use of pooled objects
is prevented after they have been returned to the pool. Fixes POOL-211. Thanks to Brad Koehn. |
markt |
Release 1.6 – 2012-01-07
Type |
Changes |
By |
 |
Support Java 1.5 Generics in version 1.x. Fixes POOL-208. |
ggregory |
Release 1.5.7 – 2011-12-20
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 |
Release 1.5.6 – 2011-04-03
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. Thanks to Adrian Nistor. |
markt |
 |
Fix performance issues when object destruction has latency. Thanks to psteitz. |
markt |
Release 1.5.5 – 2010-09-10
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 |
Release 1.5.4 – 2009-11-20
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 |
Release 1.5.3 – 2009-09-21
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 |
Release 1.5.2 – 2009-07-12
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 |
Release 1.5.1 – 2009-06-16
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 |
Release 1.5 – 2009-06-10
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 |
Release 1.4 – 2008-01-15
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. |
psteitz |
 |
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 |
Release 1.3 – 2006-04-06
Type |
Changes |
By |
 |
A large number of bug fixes. See release notes for changes. |
- |
Release 1.2 – 2004-06-07
Type |
Changes |
By |
 |
GenericKeyedObjectPoolFactory Config Constructor is incorrect |
dirkv |
 |
Not possible to extend GenericObjectPool.returnObject() without affecting addObject() |
dirkv |
Release 1.1 – 2003-10-20
Type |
Changes |
By |
 |
A lot of corner cases were fixed |
- |
 |
Performance improvement by optimizing pool synchronization, the critical code paths were optimized by reducing pool synchronization but we also added more synchronization where needed |
- |
 |
New minIdle feature: the minimum number of objects allowed in the pool before the evictor thread (if active) spawns new objects. (Note no objects are created when: numActive + numIdle >= maxActive) |
- |
 |
New maxTotal feature: a cap on the total number of instances controlled by a pool. Only for GenericKeyedObjectPool where maxActive is a cap on the number of active instances from the pool (per key). |
- |
 |
UML Class and sequence diagrams |
- |
 |
See bugzilla for more changes |
- |
Release 1.0.1 – 2002-08-12
Type |
Changes |
By |
 |
No change log available. |
- |
Release 1.0 – 2002-05-04
Type |
Changes |
By |
 |
No change log available. |
- |
|