This is an automated email from the ASF dual-hosted git repository. lihan pushed a commit to branch 10.1.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.1.x by this push: new 11f68a00ce Fix the releaseIdleCounter is incorrect. 11f68a00ce is described below commit 11f68a00cef1eea95ad1eef94065f5808d32680f Author: lihan <li...@apache.org> AuthorDate: Fri Aug 4 14:52:50 2023 +0800 Fix the releaseIdleCounter is incorrect. Fix the releaseIdleCounter does not increment when testAllIdle releases them. Pull request #241 provided by Arun Chaitanya Miriappalli --- .../src/main/java/org/apache/tomcat/jdbc/pool/ConnectionPool.java | 1 + webapps/docs/changelog.xml | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/ConnectionPool.java b/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/ConnectionPool.java index 58505cabc6..bc7653b3ac 100644 --- a/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/ConnectionPool.java +++ b/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/ConnectionPool.java @@ -1204,6 +1204,7 @@ public class ConnectionPool { release = !reconnectIfExpired(con) || !con.validate(PooledConnection.VALIDATE_IDLE); } if (release) { + releasedIdleCount.incrementAndGet(); idle.remove(con); release(con); } diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml index f069f91ee1..d19f6b45e4 100644 --- a/webapps/docs/changelog.xml +++ b/webapps/docs/changelog.xml @@ -147,6 +147,11 @@ </subsection> <subsection name="jdbc-pool"> <changelog> + <fix> + Fix the <code>releaseIdleCounter</code> does not increment when testAllIdle + releases them. Pull request <pr>241</pr> provided by Arun Chaitanya Miriappalli + (lihan) + </fix> <fix> Fix the <code>ConnectionState</code> state will be inconsistent with actual state on the connection when an exception occurs while writing. Pull request --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org