Skip to content

Commit f9a5b90

Browse files
committed
Prepare for the next release candidate
1 parent 2cd28ec commit f9a5b90

File tree

9 files changed

+93
-26
lines changed

9 files changed

+93
-26
lines changed

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ Making Changes
6161

6262
+ Create a _topic branch_ for your isolated work.
6363
* Usually you should base your branch from the `master` branch.
64-
* A good topic branch name can be the JIRA bug ID plus a keyword, for example, `POOL-123-InputStream`.
64+
* A good topic branch name can be the JIRA bug ID plus a keyword, e.g. `POOL-123-InputStream`.
6565
* If you have submitted multiple JIRA issues, try to maintain separate branches and pull requests.
6666
+ Make commits of logical units.
6767
* Make sure your commit messages are meaningful and in the proper format. Your commit message should contain the key of the JIRA issue.
68-
* For example, `[POOL-123] Close input stream earlier`
68+
* For example, `[POOL-123] Close input stream sooner`
6969
+ Respect the original code style:
7070
+ Only use spaces for indentation; you can check for unnecessary whitespace with `git diff` before committing.
7171
+ Create minimal diffs - disable _On Save_ actions like _Reformat Source Code_ or _Organize Imports_. If you feel the source code should be reformatted create a separate PR for this change first.

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Apache Commons Pool
4545

4646
[![Java CI](https://github.com/apache/commons-pool/actions/workflows/maven.yml/badge.svg)](https://github.com/apache/commons-pool/actions/workflows/maven.yml)
4747
[![Maven Central](https://img.shields.io/maven-central/v/org.apache.commons/commons-pool2?label=Maven%20Central)](https://search.maven.org/artifact/org.apache.commons/commons-pool2)
48-
[![Javadocs](https://javadoc.io/badge/org.apache.commons/commons-pool2/2.12.1.svg)](https://javadoc.io/doc/org.apache.commons/commons-pool2/2.12.1)
48+
[![Javadocs](https://javadoc.io/badge/org.apache.commons/commons-pool2/2.13.0.svg)](https://javadoc.io/doc/org.apache.commons/commons-pool2/2.13.0)
4949
[![CodeQL](https://github.com/apache/commons-pool/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/apache/commons-pool/actions/workflows/codeql-analysis.yml)
5050
[![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/apache/commons-pool/badge)](https://api.securityscorecards.dev/projects/github.com/apache/commons-pool)
5151

@@ -68,7 +68,7 @@ Alternatively, you can pull it from the central Maven repositories:
6868
<dependency>
6969
<groupId>org.apache.commons</groupId>
7070
<artifactId>commons-pool2</artifactId>
71-
<version>2.12.1</version>
71+
<version>2.13.0</version>
7272
</dependency>
7373
```
7474

@@ -89,8 +89,8 @@ There are some guidelines which will make applying PRs easier for us:
8989
+ Respect the existing code style for each file.
9090
+ Create minimal diffs - disable on save actions like reformat source code or organize imports. If you feel the source code should be reformatted create a separate PR for this change.
9191
+ Provide JUnit tests for your changes and make sure your changes don't break any existing tests by running `mvn`.
92-
+ Before you pushing a PR, run `mvn` (by itself), this runs the default goal, which contains all build checks.
93-
+ To see the code coverage report, regardless of coverage failures, run `mvn clean site -Dcommons.jacoco.haltOnFailure=false`
92+
+ Before you push a PR, run `mvn` (without arguments). This runs the default goal which contains all build checks.
93+
+ To see the code coverage report, regardless of coverage failures, run `mvn clean site -Dcommons.jacoco.haltOnFailure=false -Pjacoco`
9494

9595
If you plan to contribute on a regular basis, please consider filing a [contributor license agreement](https://www.apache.org/licenses/#clas).
9696
You can learn more about contributing via GitHub in our [contribution guidelines](CONTRIBUTING.md).

RELEASE-NOTES.txt

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,70 @@
1+
Apache Commons Pool 2.13.0 Release Notes
2+
----------------------------------------
3+
4+
The Apache Commons Pool team is pleased to announce the release of Apache Commons Pool 2.13.0.
5+
6+
Apache Commons Pool provides an object-pooling API and several object-pool implementations.
7+
Version 2 contains a completely rewritten pooling implementation compared to the 1.x series.
8+
In addition to performance and scalability improvements, version 2 includes robust instance
9+
tracking and pool monitoring.
10+
11+
Version 2.7.x and up requires Java 8 or above.
12+
Version 2.6.x requires Java 7 or above.
13+
Version 2.5.x requires Java 7 or above.
14+
Version 2.0 requires 6 or above.
15+
16+
NOTE: The MBean interfaces (DefaultPooledObjectInfoMBean, GenericKeyedObjectPoolMXBean,
17+
and GenericKeyedObjectPoolMXBean) exist only to define the attributes and methods
18+
that will be made available via JMX. Clients must not implement them as
19+
they are subject to change between major, minor, and patch version releases of
20+
Commons Pool. Clients that implement any of these interfaces may not
21+
be able to upgrade to a new minor or patch release without requiring code
22+
changes.
23+
24+
${d}
25+
26+
Changes in version 2.13.0 include:
27+
28+
New features:
29+
o Add org.apache.commons.pool2.PooledObject.nonNull(PooledObject). Thanks to Gary Gregory.
30+
o Add org.apache.commons.pool2.PooledObject.getObject(PooledObject). Thanks to Gary Gregory.
31+
o Made statistics collection optional in BaseGenericObjectPool #429. Thanks to Pratyay, Gary Gregory.
32+
33+
Fixed Bugs:
34+
o POOL-424: GenericObjectPool.invalidateObject() can leave other threads waiting to borrow hanging.
35+
The fix for this issue changes behavior of invalidateObject. This method now always tries to add a new instance
36+
to the pool to replace the invalidated and destroyed instance. As a result of this change, abandoned object
37+
removal now attemps to replace abandoned objects. Thanks to Steven Adams.
38+
o POOL-425: GenericObjectPool addObject does not respect maxIdle.
39+
o POOL-350: Make placement of calls to GKOP reuseCapacity configurable.
40+
o POOL-290: TestSoftRefOutOfMemory (unit test) can loop infinitely on failure. Thanks to Serge Angelov.
41+
o POOL-419: GenericObjectPool counters and object collections can be corrupted when returnObject and invalidate are invoked concurrently by client threads on the same pooled object. Thanks to Raju Gupta, Phil Steitz.
42+
o POOL-421: GenericObjectPool addObject should return immediately when there is no capacity to add. Thanks to Phil Steitz.
43+
o POOL-420: The maximum wait time for GenericKeyedObjectPool.borrowObject(*) may exceed configured maximum wait time. This is the same issue as POOL-418, but for GKOP.
44+
Also included in this fix is a change to addObject that prevents it from waiting for capacity to create. That method now returns immediately when there is no capcity to add to the pool under the given key. Thanks to Phil Steitz.
45+
o 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.
46+
o POOL-418: The maximum wait time for GenericObjectPool.borrowObject(*) may exceed expectations due to a spurious thread wakeup.
47+
The remaining duration was incorrectly calculated and the method did not end up waiting long enough.
48+
Recompute the remaining duration an additional time when we block when exhausted. Thanks to Gary Gregory.
49+
o Fix site link from the About page to the Download page, see also #387. Thanks to Wei Guo, Gary Gregory.
50+
o Operation on the "idleHighWaterMark" shared variable in "ErodingFactor" class is not atomic [org.apache.commons.pool2.PoolUtils$ErodingFactor] At PoolUtils.java:[line 98] AT_NONATOMIC_OPERATIONS_ON_SHARED_VARIABLE. Thanks to Gary Gregory.
51+
o org.apache.commons.pool2.impl.GenericObjectPool.create(Duration) should normalize a negative duration to zero. Thanks to Gary Gregory.
52+
o Fix potential ConcurrentModificationException in EvictionTimer thread clean-up. Thanks to Coverity Scan.
53+
o Fix potential ConcurrentModificationException in EvictionTimer tasks. Thanks to Coverity Scan.
54+
55+
Changes:
56+
o Bump org.apache.commons:commons-parent from 79 to 93. Thanks to Gary Gregory.
57+
o [test] Bump commons-lang3 from 3.17.0 to 3.20.0. Thanks to Gary Gregory.
58+
59+
60+
For complete information on Apache Commons Pool, including instructions on how to submit bug reports,
61+
patches, or suggestions for improvement, see the Apache Commons Pool website:
62+
63+
https://commons.apache.org/proper/commons-pool/
64+
65+
Download page: https://commons.apache.org/proper/commons-pool/download_pool.cgi
66+
67+
-----------------------------------------------------------------------------------------------
168
Apache Commons Pool 2.12.1 Release Notes
269
----------------------------------------
370

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
<commons.release.branch>release-2.x</commons.release.branch>
8989
<commons.componentid>pool</commons.componentid>
9090
<commons.module.name>org.apache.commons.pool2</commons.module.name>
91-
<commons.rc.version>RC3</commons.rc.version>
91+
<commons.rc.version>RC1</commons.rc.version>
9292
<checkstyle.suppress.file>${basedir}/src/conf/checkstyle-suppressions.xml</checkstyle.suppress.file>
9393
<!-- Java 8 -->
9494
<commons.release.version>2.13.0</commons.release.version>

src/changes/changes.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ The <action> type attribute can be add,update,fix,remove.
4545
<title>Apache Commons Pool Release Notes</title>
4646
</properties>
4747
<body>
48-
<release version="2.13.0" date="YYYY-MM-DD" description="This is a feature and maintenance release. Java 8 or later is required.">
48+
<release version="2.13.0" date="2025-12-06" description="This is a feature and maintenance release. Java 8 or later is required.">
4949
<!-- FIX -->
5050
<action type="fix" issue="POOL-424" dev="psteitz" due-to="Steven Adams">GenericObjectPool.invalidateObject() can leave other threads waiting to borrow hanging.
5151
The fix for this issue changes behavior of invalidateObject. This method now always tries to add a new instance

src/changes/release-notes.vm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
## specific language governing permissions and limitations
1616
## under the License.
1717
${project.name} ${version} Release Notes
18-
------------------------------------------------
18+
----------------------------------------
1919

2020
The ${developmentTeam} is pleased to announce the release of ${project.name} ${version}.
2121

src/site/xdoc/download_pool.xml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ limitations under the License.
5858
-->
5959
<document xmlns="http://maven.apache.org/XDOC/2.0"
6060
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
61-
xsi:schemaLocation="https://maven.apache.org/XDOC/2.0 https://maven.apache.org/xsd/xdoc-2.0.xsd">
61+
xsi:schemaLocation="http://maven.apache.org/XDOC/2.0 https://maven.apache.org/xsd/xdoc-2.0.xsd">
6262
<properties>
6363
<title>Download Apache Commons Pool</title>
6464
<author email="[email protected]">Apache Commons Team</author>
@@ -81,7 +81,7 @@ limitations under the License.
8181
mirrors (at the end of the mirrors list) that should be
8282
available.
8383
<br></br>
84-
[if-any logo]<a href="[link]"><img align="right" src="[logo]" border="0"></img></a>[end]
84+
[if-any logo]<a href="[link]"><img align="right" src="[logo]" border="0" alt="Logo"></img></a>[end]
8585
</p>
8686

8787
<form action="[location]" method="get" id="SelectMirror">
@@ -115,32 +115,32 @@ limitations under the License.
115115
</p>
116116
</subsection>
117117
</section>
118-
<section name="Apache Commons Pool 2.12.1 (Java 8 or above)">
118+
<section name="Apache Commons Pool 2.13.0 (Java 8 or above)">
119119
<subsection name="Binaries">
120120
<table>
121121
<tr>
122-
<td><a href="[preferred]/commons/pool/binaries/commons-pool2-2.12.1-bin.tar.gz">commons-pool2-2.12.1-bin.tar.gz</a></td>
123-
<td><a href="https://downloads.apache.org/commons/pool/binaries/commons-pool2-2.12.1-bin.tar.gz.sha512">sha512</a></td>
124-
<td><a href="https://downloads.apache.org/commons/pool/binaries/commons-pool2-2.12.1-bin.tar.gz.asc">pgp</a></td>
122+
<td><a href="[preferred]/commons/pool/binaries/commons-pool2-2.13.0-bin.tar.gz">commons-pool2-2.13.0-bin.tar.gz</a></td>
123+
<td><a href="https://downloads.apache.org/commons/pool/binaries/commons-pool2-2.13.0-bin.tar.gz.sha512">sha512</a></td>
124+
<td><a href="https://downloads.apache.org/commons/pool/binaries/commons-pool2-2.13.0-bin.tar.gz.asc">pgp</a></td>
125125
</tr>
126126
<tr>
127-
<td><a href="[preferred]/commons/pool/binaries/commons-pool2-2.12.1-bin.zip">commons-pool2-2.12.1-bin.zip</a></td>
128-
<td><a href="https://downloads.apache.org/commons/pool/binaries/commons-pool2-2.12.1-bin.zip.sha512">sha512</a></td>
129-
<td><a href="https://downloads.apache.org/commons/pool/binaries/commons-pool2-2.12.1-bin.zip.asc">pgp</a></td>
127+
<td><a href="[preferred]/commons/pool/binaries/commons-pool2-2.13.0-bin.zip">commons-pool2-2.13.0-bin.zip</a></td>
128+
<td><a href="https://downloads.apache.org/commons/pool/binaries/commons-pool2-2.13.0-bin.zip.sha512">sha512</a></td>
129+
<td><a href="https://downloads.apache.org/commons/pool/binaries/commons-pool2-2.13.0-bin.zip.asc">pgp</a></td>
130130
</tr>
131131
</table>
132132
</subsection>
133133
<subsection name="Source">
134134
<table>
135135
<tr>
136-
<td><a href="[preferred]/commons/pool/source/commons-pool2-2.12.1-src.tar.gz">commons-pool2-2.12.1-src.tar.gz</a></td>
137-
<td><a href="https://downloads.apache.org/commons/pool/source/commons-pool2-2.12.1-src.tar.gz.sha512">sha512</a></td>
138-
<td><a href="https://downloads.apache.org/commons/pool/source/commons-pool2-2.12.1-src.tar.gz.asc">pgp</a></td>
136+
<td><a href="[preferred]/commons/pool/source/commons-pool2-2.13.0-src.tar.gz">commons-pool2-2.13.0-src.tar.gz</a></td>
137+
<td><a href="https://downloads.apache.org/commons/pool/source/commons-pool2-2.13.0-src.tar.gz.sha512">sha512</a></td>
138+
<td><a href="https://downloads.apache.org/commons/pool/source/commons-pool2-2.13.0-src.tar.gz.asc">pgp</a></td>
139139
</tr>
140140
<tr>
141-
<td><a href="[preferred]/commons/pool/source/commons-pool2-2.12.1-src.zip">commons-pool2-2.12.1-src.zip</a></td>
142-
<td><a href="https://downloads.apache.org/commons/pool/source/commons-pool2-2.12.1-src.zip.sha512">sha512</a></td>
143-
<td><a href="https://downloads.apache.org/commons/pool/source/commons-pool2-2.12.1-src.zip.asc">pgp</a></td>
141+
<td><a href="[preferred]/commons/pool/source/commons-pool2-2.13.0-src.zip">commons-pool2-2.13.0-src.zip</a></td>
142+
<td><a href="https://downloads.apache.org/commons/pool/source/commons-pool2-2.13.0-src.zip.sha512">sha512</a></td>
143+
<td><a href="https://downloads.apache.org/commons/pool/source/commons-pool2-2.13.0-src.zip.asc">pgp</a></td>
144144
</tr>
145145
</table>
146146
</subsection>

src/site/xdoc/issue-tracking.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ limitations under the License.
4343
-->
4444
<document xmlns="http://maven.apache.org/XDOC/2.0"
4545
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
46-
xsi:schemaLocation="https://maven.apache.org/XDOC/2.0 https://maven.apache.org/xsd/xdoc-2.0.xsd">
46+
xsi:schemaLocation="http://maven.apache.org/XDOC/2.0 https://maven.apache.org/xsd/xdoc-2.0.xsd">
4747
<properties>
4848
<title>Apache Commons Pool Issue tracking</title>
4949
<author email="[email protected]">Apache Commons Team</author>

src/site/xdoc/mail-lists.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ limitations under the License.
4141
-->
4242
<document xmlns="http://maven.apache.org/XDOC/2.0"
4343
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44-
xsi:schemaLocation="https://maven.apache.org/XDOC/2.0 https://maven.apache.org/xsd/xdoc-2.0.xsd">
44+
xsi:schemaLocation="http://maven.apache.org/XDOC/2.0 https://maven.apache.org/xsd/xdoc-2.0.xsd">
4545
<properties>
4646
<title>Apache Commons Pool Mailing Lists</title>
4747
<author email="[email protected]">Apache Commons Team</author>

0 commit comments

Comments
 (0)