You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-commits@jackrabbit.apache.org by da...@apache.org on 2026/02/10 06:03:27 UTC

(jackrabbit-oak) branch OAK-12088 created (now f4e50743fe)

This is an automated email from the ASF dual-hosted git repository.

daim pushed a change to branch OAK-12088
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git


      at f4e50743fe OAK-12088 : added connectionAcquisitionTimeout to avoid acquire timeout issue

This branch includes the following new commits:

     new f4e50743fe OAK-12088 : added connectionAcquisitionTimeout to avoid acquire timeout issue

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(jackrabbit-oak) 01/01: OAK-12088 : added connectionAcquisitionTimeout to avoid acquire timeout issue

Posted by da...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

daim pushed a commit to branch OAK-12088
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git

commit f4e50743fed2ac213a95aeb2fbed338862ddc8d9
Author: rishabhdaim <ri...@gmail.com>
AuthorDate: Tue Feb 10 11:33:12 2026 +0530

    OAK-12088 : added connectionAcquisitionTimeout to avoid acquire timeout issue
---
 .../src/main/java/org/apache/jackrabbit/oak/blob/cloud/s3/Utils.java    | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/oak-blob-cloud/src/main/java/org/apache/jackrabbit/oak/blob/cloud/s3/Utils.java b/oak-blob-cloud/src/main/java/org/apache/jackrabbit/oak/blob/cloud/s3/Utils.java
index d44528574b..6c479076a1 100644
--- a/oak-blob-cloud/src/main/java/org/apache/jackrabbit/oak/blob/cloud/s3/Utils.java
+++ b/oak-blob-cloud/src/main/java/org/apache/jackrabbit/oak/blob/cloud/s3/Utils.java
@@ -453,6 +453,7 @@ public final class Utils {
                 .maxConnections(maxConnections) // Connection pool
                 .connectionMaxIdleTime(Duration.ofSeconds(idleTimeSeconds))
                 .connectionTimeToLive(Duration.ofSeconds(ttlSeconds))
+                .connectionAcquisitionTimeout(Duration.ofMillis(config.connectionTimeout)) // timeout while waiting for connection from pool
                 .useIdleConnectionReaper(true)
                 .tcpKeepAlive(true) // TCP keepalive
                 .expectContinueEnabled(true); // Expect-continue handshake (reduces overhead for large uploads)
@@ -498,6 +499,7 @@ public final class Utils {
                 .maxConcurrency(concurrency)  // Connection pool - increased for better concurrency
                 .connectionMaxIdleTime(Duration.ofSeconds(idleTimeSeconds))
                 .connectionTimeToLive(Duration.ofSeconds(ttlSeconds))
+                .connectionAcquisitionTimeout(Duration.ofMillis(config.connectionTimeout)) // timeout while waiting for connection from pool
                 .useIdleConnectionReaper(true)
                 .tcpKeepAlive(true) // TCP optimizations
                 .eventLoopGroup(