You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "konstantinb (via GitHub)" <gi...@apache.org> on 2026/04/14 18:21:55 UTC

[PR] HADOOP-19862: S3A: introduce configurable shared thread pool for AWS SDK clients [hadoop]

konstantinb opened a new pull request, #8426:
URL: https://github.com/apache/hadoop/pull/8426

   <!--
     Thanks for sending a pull request!
       1. If this is your first time, please read our contributor guidelines: https://cwiki.apache.org/confluence/display/HADOOP/How+To+Contribute
       2. Make sure your PR title starts with JIRA issue id, e.g., 'HADOOP-17799. Your PR title ...'.
   -->
   
   ### Description of PR
   HADOOP-19862: S3A: introduce configurable shared thread pool for AWS SDK clients
   
   ### How was this patch tested?
   
   
   ### For code changes:
   
   - [ ] Does the title or this PR starts with the corresponding JIRA issue id (e.g. 'HADOOP-17799. Your PR title ...')?
   - [ ] Object storage: have the integration tests been executed and the endpoint declared according to the connector-specific documentation?
   - [ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under [ASF 2.0](http://www.apache.org/legal/resolved.html#category-a)?
   - [ ] If applicable, have you updated the `LICENSE`, `LICENSE-binary`, `NOTICE-binary` files?
   
   ### AI Tooling
   
   If an AI tool was used:
   
   - [ ] The PR includes the phrase "Contains content generated by <tool>"
         where <tool> is the name of the AI tool used.
   - [ ] My use of AI contributions follows the ASF legal policy
         https://www.apache.org/legal/generative-tooling.html


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Re: [PR] HADOOP-19862: S3A: introduce configurable shared thread pool for AWS SDK clients [hadoop]

Posted by "konstantinb (via GitHub)" <gi...@apache.org>.
konstantinb commented on code in PR #8426:
URL: https://github.com/apache/hadoop/pull/8426#discussion_r3455213468


##########
hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/impl/LazySharedThreadPoolHolder.java:
##########
@@ -0,0 +1,112 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.hadoop.fs.s3a.impl;
+
+import java.util.Optional;
+import java.util.concurrent.ScheduledExecutorService;
+import java.util.concurrent.ScheduledThreadPoolExecutor;
+import java.util.concurrent.TimeUnit;
+
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import org.apache.hadoop.classification.InterfaceAudience;
+import org.apache.hadoop.classification.InterfaceStability;
+import org.apache.hadoop.conf.Configuration;
+
+import static org.apache.hadoop.fs.s3a.Constants.AWS_CLIENT_SHARED_THREADPOOL_KEEPALIVE_DEFAULT;
+import static org.apache.hadoop.fs.s3a.Constants.AWS_CLIENT_SHARED_THREADPOOL_SIZE_DEFAULT;
+import static org.apache.hadoop.util.Preconditions.checkArgument;
+
+/**
+ * Holder for a lazily initialized shared ScheduledExecutorService.
+ */
+@InterfaceAudience.Private
+@InterfaceStability.Unstable
+public class LazySharedThreadPoolHolder {
+
+  private static final Logger LOG =
+      LoggerFactory.getLogger(LazySharedThreadPoolHolder.class);
+
+  private final String enabledKey;
+  private final String sizeKey;
+  private final String keepAliveKey;
+  private final String namePrefix;
+
+  private volatile Optional<ScheduledExecutorService> executor;
+
+  /**
+   * Create a holder for a lazy shared thread pool.
+   * @param enabledKey config key to enable the shared pool
+   * @param sizeKey config key for pool size
+   * @param keepAliveKey config key for thread keep-alive in seconds
+   * @param namePrefix thread name prefix for debugging
+   */
+  public LazySharedThreadPoolHolder(String enabledKey, String sizeKey,
+      String keepAliveKey, String namePrefix) {
+    this.enabledKey = enabledKey;
+    this.sizeKey = sizeKey;
+    this.keepAliveKey = keepAliveKey;
+    this.namePrefix = namePrefix;
+  }
+
+  /**
+   * Get the shared executor, creating it on first call if enabled.
+   * @param conf configuration
+   * @return the executor, or null if not enabled
+   */
+  public synchronized ScheduledExecutorService get(Configuration conf) {
+    if (executor == null) {
+      if (conf.getBoolean(enabledKey, false)) {
+        int poolSize = conf.getInt(sizeKey, AWS_CLIENT_SHARED_THREADPOOL_SIZE_DEFAULT);
+        int keepAlive = conf.getInt(keepAliveKey, AWS_CLIENT_SHARED_THREADPOOL_KEEPALIVE_DEFAULT);
+        checkArgument(poolSize > 0,
+            "Value of %s must be positive, got: %s", sizeKey, poolSize);

Review Comment:
   > S3AUtils.intOption() can combine range checks with retrieval
   
   My apologies, I totally missed this comment originally.
   Done — get() now uses S3AUtils.intOption(conf, key, default, 1) for size and keepalive, folding the range check into retrieval and dropping the checkArgument calls; updated the unit test's expected message to match.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Re: [PR] HADOOP-19862: S3A: introduce configurable shared thread pool for AWS SDK clients [hadoop]

Posted by "ajfabbri (via GitHub)" <gi...@apache.org>.
ajfabbri commented on code in PR #8426:
URL: https://github.com/apache/hadoop/pull/8426#discussion_r3438839505


##########
hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/ITestS3ASharedThreadPoolDisabled.java:
##########
@@ -0,0 +1,74 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.hadoop.fs.s3a;
+
+import org.assertj.core.api.Assertions;
+import org.junit.jupiter.api.Test;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+/**
+ * Control case for {@link ITestS3ASharedThreadPoolEnabled}: with the shared
+ * pool disabled (the default), each S3AFileSystem's AWS SDK clients create their
+ * own sdk-ScheduledExecutor pool, so thread count grows with the number of
+ * instances. Kept a separate class so it runs in its own JVM (hadoop-aws uses
+ * reuseForks=false) and the static holders never memoize in the enabled state.

Review Comment:
   Thanks for the detailed comment here. I've been playing with test parallelization in my spare time (for faster CI) and these sorts of comments help a lot with figuring out why tests become flaky when we stop giving each test class a fresh JVM. (Side note: it would be nice if we could express this with annotations like Junit5 [ExecutionMode](https://docs.junit.org/5.3.0/api/org/junit/jupiter/api/parallel/ExecutionMode.html) in the future and then choose more aggressive parallelism / JVM reuse.)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Re: [PR] HADOOP-19862: S3A: introduce configurable shared thread pool for AWS SDK clients [hadoop]

Posted by "konstantinb (via GitHub)" <gi...@apache.org>.
konstantinb commented on code in PR #8426:
URL: https://github.com/apache/hadoop/pull/8426#discussion_r3455274073


##########
hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/ITestS3ASharedThreadPoolEnabled.java:
##########
@@ -0,0 +1,97 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.hadoop.fs.s3a;
+
+import org.assertj.core.api.Assertions;
+import org.junit.jupiter.api.Test;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import org.apache.hadoop.conf.Configuration;
+
+import static org.apache.hadoop.fs.s3a.Constants.AWS_S3_ASYNC_CLIENT_SHARED_THREADPOOL_ENABLED;
+import static org.apache.hadoop.fs.s3a.Constants.AWS_S3_ASYNC_CLIENT_SHARED_THREADPOOL_SIZE;
+import static org.apache.hadoop.fs.s3a.Constants.AWS_S3_CLIENT_SHARED_THREADPOOL_ENABLED;
+import static org.apache.hadoop.fs.s3a.Constants.AWS_S3_CLIENT_SHARED_THREADPOOL_SIZE;
+
+/**
+ * Integration test demonstrating that the shared scheduled thread pool bounds
+ * thread growth across many S3AFileSystem instances.
+ * <p>
+ * Background (HADOOP-19862): each S3AFileSystem builds its own AWS SDK clients,
+ * and each client otherwise creates a 5-thread sdk-ScheduledExecutor pool, so
+ * creating many instances grows threads without bound. With the shared pool
+ * enabled, all clients of a type reuse a single pool, so the thread count stays
+ * bounded regardless of how many instances are created.
+ * <p>
+ * This test proves the fix direction (pool enabled, threads bounded);
+ * {@link ITestS3ASharedThreadPoolDisabled} is the control proving the opposite
+ * (pool disabled, threads grow). The two must be separate classes: the holders
+ * are private static final and memoize on first use, so the first configuration
+ * to reach them wins for the JVM. They stay isolated because hadoop-aws runs
+ * tests with reuseForks=false (a fresh JVM per test class); do not merge them
+ * into one class.
+ * <p>
+ * Exact thread counts depend on AWS SDK internals, so the assertion is on the
+ * bound (not exceeding the pool sizes), not an exact number.
+ */
+public class ITestS3ASharedThreadPoolEnabled extends AbstractS3ATestBase {

Review Comment:
   @steveloughran thank you for your review and additional comments
   
   I went back and forth on this one. My current conclusion: teardown doesn't need to touch the pool, so I've left it out and documented the constraint — happy to add a hook if you'd prefer.
   
   On resources, it cleans up after itself: the threads are daemon, and it sets `allowCoreThreadTimeOut(true)` with a 60s keepalive, so idle threads time out and the pool is reaped at JVM exit — it won't accumulate or hold the JVM open.
   
   On isolation, a reset is the only lever — the holder is a JVM-global static that memoizes on first use and then ignores later config. Under `reuseForks=false` that reset is a no-op (each class already runs in its own fresh JVM), and under fork reuse it'd be worse: `shutdownNow()` on the shared pool would reject in-flight scheduled work for any other filesystem still using it. So the enabled/disabled cases are split into two classes, each in its own fork (which is what provides the isolation), and I've noted that in the javadocs.
   
   If you'd still like an explicit test-only shutdown hook regardless, I'm glad to add one.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Re: [PR] HADOOP-19862: S3A: introduce configurable shared thread pool for AWS SDK clients [hadoop]

Posted by "konstantinb (via GitHub)" <gi...@apache.org>.
konstantinb commented on PR #8426:
URL: https://github.com/apache/hadoop/pull/8426#issuecomment-4745744957

   Thanks again for the thorough review, @ajfabbri — much appreciated.
   
   > I have two requested changes to (1) add to `core-default.xml` (2) remove superfluous `volatile`.
   
   Both done — removed the `volatile` (the field is only accessed inside the `synchronized` method) and added the shared-thread-pool keys to `core-default.xml` with their defaults. Also addressed the two inline nits: `@VisibleForTesting` on `createScheduledExecutor`, and explicit size/keepalive value assertions in `TestSharedScheduledExecutor`.
   
   > Final thought / question: It would be cool to add a test which actually causes runaway thread growth with S3A FS instances, and compares it w/ and w/o shared pools.
   
   I had the same instinct, so it's in this PR rather than a follow-up. Two ITests:
   - `ITestS3ASharedThreadPoolDisabled` — creates 20 uncached `S3AFileSystem` instances, abandons them, then forces GC until a `WeakReference` to one clears (proving the instance was really collected, since `System.gc()` is only a hint). Without sharing, the per-client `sdk-ScheduledExecutor` pools survive collection and the thread count far exceeds a single pool.
   - `ITestS3ASharedThreadPoolEnabled` — same scenario with the shared pool on; the thread count stays bounded.
   
   Together they demonstrate the impact of [aws-sdk-java-v2#1690](https://github.com/aws/aws-sdk-java-v2/issues/1690) — the "leaked when the client is evicted" thread growth without the shared pool, and bounded with it.
   
   > Thinking out loud on the lifecycle and ownership question... The fact that these are opt-in configs that default to disabled mitigates a lot of the risk...
   
   Agreed. The opt-in, default-disabled design was deliberate, for exactly the risk you mention around qualifying different workloads — the change has no effect on existing deployments until someone explicitly enables it. The shared executor also uses `allowCoreThreadTimeOut(true)` with a 60s keepalive, so idle threads time out and the pool shrinks back to near zero when there's no work, instead of holding threads for the life of the JVM. As an extra check that turning it on is safe, I ran the full hadoop-aws integration suite (against LocalStack) both with all four pools enabled and with the default; the pass/fail set was identical except the disabled-control test above, which by design expects the leak — so enabling the pools didn't perturb the rest of the suite.
   
   > Another thought for potential future work: it would be nice if the pool sizes were auto-tuned.
   
   Strongly agree on the "too many knobs" point. The current defaults are at least a reasonable baseline — size 5 mirrors the SDK's own per-client default (`Executors.newScheduledThreadPool(5)`), and the 60s keepalive adds the idle-thread timeout the SDK's default executor doesn't have. If we revisit sizing, I'd lean away from a control loop and toward the self-trimming we already have: since idle threads already time out, over-sizing is nearly free while under-sizing only costs scheduling latency, so a generous cap (e.g. derived from `availableProcessors()`) that the keepalive trims back to the actual working set removes most of the need to pick an exact number — and since this pool just fires small retry/timeout/refresh tasks, even 5 is rarely the bottleneck. The higher-value first step is probably observability rather than tuning: surfacing live scheduler-thread count and scheduling latency (e.g. via `IOStatistics`) so it's visible whether a pool is ever saturated before anyon
 e reaches for a knob.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Re: [PR] HADOOP-19862: S3A: introduce configurable shared thread pool for AWS SDK clients [hadoop]

Posted by "konstantinb (via GitHub)" <gi...@apache.org>.
konstantinb commented on code in PR #8426:
URL: https://github.com/apache/hadoop/pull/8426#discussion_r3455218655


##########
hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/ITestS3ASharedThreadPoolEnabled.java:
##########
@@ -0,0 +1,97 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.hadoop.fs.s3a;
+
+import org.assertj.core.api.Assertions;
+import org.junit.jupiter.api.Test;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import org.apache.hadoop.conf.Configuration;
+
+import static org.apache.hadoop.fs.s3a.Constants.AWS_S3_ASYNC_CLIENT_SHARED_THREADPOOL_ENABLED;
+import static org.apache.hadoop.fs.s3a.Constants.AWS_S3_ASYNC_CLIENT_SHARED_THREADPOOL_SIZE;
+import static org.apache.hadoop.fs.s3a.Constants.AWS_S3_CLIENT_SHARED_THREADPOOL_ENABLED;
+import static org.apache.hadoop.fs.s3a.Constants.AWS_S3_CLIENT_SHARED_THREADPOOL_SIZE;
+
+/**
+ * Integration test demonstrating that the shared scheduled thread pool bounds
+ * thread growth across many S3AFileSystem instances.
+ * <p>
+ * Background (HADOOP-19862): each S3AFileSystem builds its own AWS SDK clients,
+ * and each client otherwise creates a 5-thread sdk-ScheduledExecutor pool, so
+ * creating many instances grows threads without bound. With the shared pool
+ * enabled, all clients of a type reuse a single pool, so the thread count stays
+ * bounded regardless of how many instances are created.
+ * <p>
+ * This test proves the fix direction (pool enabled, threads bounded);
+ * {@link ITestS3ASharedThreadPoolDisabled} is the control proving the opposite
+ * (pool disabled, threads grow). The two must be separate classes: the holders
+ * are private static final and memoize on first use, so the first configuration
+ * to reach them wins for the JVM. They stay isolated because hadoop-aws runs
+ * tests with reuseForks=false (a fresh JVM per test class); do not merge them
+ * into one class.
+ * <p>
+ * Exact thread counts depend on AWS SDK internals, so the assertion is on the
+ * bound (not exceeding the pool sizes), not an exact number.
+ */
+public class ITestS3ASharedThreadPoolEnabled extends AbstractS3ATestBase {
+
+  private static final Logger LOG =
+      LoggerFactory.getLogger(ITestS3ASharedThreadPoolEnabled.class);
+
+  private static final int POOL_SIZE = 5;
+
+  /** Number of distinct filesystem instances to create. */
+  private static final int INSTANCES = 20;
+
+  /** Thread name prefixes used by the shared pools (see the factories). */
+  private static final String[] SHARED_POOL_PREFIXES = {
+      "s3a-s3-sync-scheduler",
+      "s3a-s3-async-scheduler",
+  };
+
+  @Override
+  protected Configuration createConfiguration() {
+    Configuration conf = super.createConfiguration();
+    // Enable the shared pools before any client is built, so the static
+    // holders memoize in the enabled state for this JVM.
+    conf.setBoolean(AWS_S3_CLIENT_SHARED_THREADPOOL_ENABLED, true);

Review Comment:
   Done — both ITests now scrub base + per-bucket overrides for the threadpool keys before configuring, so a stray bucket/site setting can't silently flip the pool. Applied to the disabled test too, where I additionally pin the flags explicitly off so it's deterministic regardless of the default.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Re: [PR] HADOOP-19862: S3A: introduce configurable shared thread pool for AWS SDK clients [hadoop]

Posted by "ajfabbri (via GitHub)" <gi...@apache.org>.
ajfabbri commented on PR #8426:
URL: https://github.com/apache/hadoop/pull/8426#issuecomment-4271719370

   👋 Thanks for the PR! I've been meaning to help test and review this but haven't had time to get to it. Will try to take a look next week.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Re: [PR] HADOOP-19862: S3A: introduce configurable shared thread pool for AWS SDK clients [hadoop]

Posted by "ajfabbri (via GitHub)" <gi...@apache.org>.
ajfabbri commented on PR #8426:
URL: https://github.com/apache/hadoop/pull/8426#issuecomment-4909210341

   Testing in us-west2 passed. Merged to trunk. Thanks for the contribution @konstantinb 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Re: [PR] HADOOP-19862: S3A: introduce configurable shared thread pool for AWS SDK clients [hadoop]

Posted by "fpfuetsch (via GitHub)" <gi...@apache.org>.
fpfuetsch commented on PR #8426:
URL: https://github.com/apache/hadoop/pull/8426#issuecomment-4719227767

   @ajfabbri Are there any updates on this topic= I would highly appreciate the thread leaking issues to be fixed as this causes problems in the latest Apache Hive versions.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Re: [PR] HADOOP-19862: S3A: introduce configurable shared thread pool for AWS SDK clients [hadoop]

Posted by "konstantinb (via GitHub)" <gi...@apache.org>.
konstantinb commented on PR #8426:
URL: https://github.com/apache/hadoop/pull/8426#issuecomment-4736578486

   @ajfabbri  thank you for the review; I have all the requested changes ready, along with a conclusive integration test proving thread leaks, waiting only on local test runs, will push updates as soon as I can


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Re: [PR] HADOOP-19862: S3A: introduce configurable shared thread pool for AWS SDK clients [hadoop]

Posted by "steveloughran (via GitHub)" <gi...@apache.org>.
steveloughran commented on PR #8426:
URL: https://github.com/apache/hadoop/pull/8426#issuecomment-4802130168

   >  every S3A deployment would silently inherit the new shared-executor model on upgrade, often unknowingly, across workloads none of us has exercised.
   
   true. and on shared user systems, there's things like shared UGI subjects to worry about


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Re: [PR] HADOOP-19862: S3A: introduce configurable shared thread pool for AWS SDK clients [hadoop]

Posted by "konstantinb (via GitHub)" <gi...@apache.org>.
konstantinb commented on PR #8426:
URL: https://github.com/apache/hadoop/pull/8426#issuecomment-4754628828

   @ajfabbri looks like we finally have a green checkmark from the pipeline


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Re: [PR] HADOOP-19862: S3A: introduce configurable shared thread pool for AWS SDK clients [hadoop]

Posted by "steveloughran (via GitHub)" <gi...@apache.org>.
steveloughran commented on PR #8426:
URL: https://github.com/apache/hadoop/pull/8426#issuecomment-4778075477

   @konstantinb ok, let's keep it simple. 
   
   Now, next thought. Do we want this shared pool on by default?
   
   thoughts?
   @mukund-thakur @ajfabbri @ahmarsuhail?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Re: [PR] HADOOP-19862: S3A: introduce configurable shared thread pool for AWS SDK clients [hadoop]

Posted by "konstantinb (via GitHub)" <gi...@apache.org>.
konstantinb commented on code in PR #8426:
URL: https://github.com/apache/hadoop/pull/8426#discussion_r3455709416


##########
hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/ITestS3ASharedThreadPoolDisabled.java:
##########
@@ -0,0 +1,74 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.hadoop.fs.s3a;
+
+import org.assertj.core.api.Assertions;
+import org.junit.jupiter.api.Test;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+/**
+ * Control case for {@link ITestS3ASharedThreadPoolEnabled}: with the shared
+ * pool disabled (the default), each S3AFileSystem's AWS SDK clients create their
+ * own sdk-ScheduledExecutor pool, so thread count grows with the number of
+ * instances. Kept a separate class so it runs in its own JVM (hadoop-aws uses
+ * reuseForks=false) and the static holders never memoize in the enabled state.

Review Comment:
   Thank you @ajfabbri! 
   
   Exactly the case I had in mind for spelling it out. Worth noting it's a per-process need, not per-thread: the holder is a JVM-global static, so these two want separate JVMs (the reuseForks axis), not just serialized threads — an ExecutionMode-style knob would need to drive fork allocation to cover it. FWIW I prototyped that side: each test launches a child JVM (ProcessBuilder, much like the router tests' JavaProcess) that reuses the same S3ATestUtils measurement, so the work runs with fresh statics and comes out reuseForks-immune
    
   [SharedPoolForkWorker.java](https://github.com/user-attachments/files/29225451/SharedPoolForkWorker.java)
   [ITestS3ASharedThreadPoolEnabledForked.java](https://github.com/user-attachments/files/29225480/ITestS3ASharedThreadPoolEnabledForked.java)
   [ITestS3ASharedThreadPoolDisabledForked.java](https://github.com/user-attachments/files/29225498/ITestS3ASharedThreadPoolDisabledForked.java)
   
    



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Re: [PR] HADOOP-19862: S3A: introduce configurable shared thread pool for AWS SDK clients [hadoop]

Posted by "ajfabbri (via GitHub)" <gi...@apache.org>.
ajfabbri commented on PR #8426:
URL: https://github.com/apache/hadoop/pull/8426#issuecomment-4747255735

   [S3A CI](https://github.com/apache/hadoop/runs/82236583091) passed. I also was able to run them locally against AWS S3.  jenkins/pr-merge seems to have encountered some unrelated issue:
   ```
   14:08:07  ============================================================================
   14:08:07                             maven install: trunk
   14:08:07  ============================================================================
   14:08:07  ============================================================================
   14:08:07  
   14:08:07  
   14:08:07  cd /home/jenkins/jenkins-home/workspace/hadoop-multibranch_PR-8554/ubuntu-noble/src
   14:08:07  /opt/maven/bin/mvn --batch-mode -Dmaven.repo.local=/home/jenkins/jenkins-home/workspace/hadoop-multibranch_PR-8554/yetus-m2/hadoop-trunk-patch-1 -DskipTests -Pnative -Drequire.fuse -Drequire.openssl -Drequire.snappy -Drequire.valgrind -Drequire.zstd -Drequire.test.libhadoop -Pyarn-ui -fae clean install -DskipTests=true -Dmaven.javadoc.skip=true -Dcheckstyle.skip=true -Dfindbugs.skip=true -Dspotbugs.skip=true > /home/jenkins/jenkins-home/workspace/hadoop-multibranch_PR-8554/ubuntu-noble/out/branch-mvninstall-root.txt 2>&1
   14:29:10  ERROR: Caught signal TERM.
   ```
   I've attempted to re-run that [jenkins job](https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8554/). If that doesn't work you can also push an empty commit to retrigger (e.g. `git commit --allow-empty -m "Retrigger CI"`).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Re: [PR] HADOOP-19862: S3A: introduce configurable shared thread pool for AWS SDK clients [hadoop]

Posted by "steveloughran (via GitHub)" <gi...@apache.org>.
steveloughran commented on code in PR #8426:
URL: https://github.com/apache/hadoop/pull/8426#discussion_r3087252644


##########
hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/impl/LazySharedThreadPoolHolder.java:
##########
@@ -0,0 +1,112 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.hadoop.fs.s3a.impl;
+
+import java.util.Optional;
+import java.util.concurrent.ScheduledExecutorService;
+import java.util.concurrent.ScheduledThreadPoolExecutor;
+import java.util.concurrent.TimeUnit;
+
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import org.apache.hadoop.classification.InterfaceAudience;
+import org.apache.hadoop.classification.InterfaceStability;
+import org.apache.hadoop.conf.Configuration;
+
+import static org.apache.hadoop.fs.s3a.Constants.AWS_CLIENT_SHARED_THREADPOOL_KEEPALIVE_DEFAULT;
+import static org.apache.hadoop.fs.s3a.Constants.AWS_CLIENT_SHARED_THREADPOOL_SIZE_DEFAULT;
+import static org.apache.hadoop.util.Preconditions.checkArgument;
+
+/**
+ * Holder for a lazily initialized shared ScheduledExecutorService.
+ */
+@InterfaceAudience.Private
+@InterfaceStability.Unstable
+public class LazySharedThreadPoolHolder {
+
+  private static final Logger LOG =
+      LoggerFactory.getLogger(LazySharedThreadPoolHolder.class);
+
+  private final String enabledKey;
+  private final String sizeKey;
+  private final String keepAliveKey;
+  private final String namePrefix;
+
+  private volatile Optional<ScheduledExecutorService> executor;
+
+  /**
+   * Create a holder for a lazy shared thread pool.
+   * @param enabledKey config key to enable the shared pool
+   * @param sizeKey config key for pool size
+   * @param keepAliveKey config key for thread keep-alive in seconds
+   * @param namePrefix thread name prefix for debugging
+   */
+  public LazySharedThreadPoolHolder(String enabledKey, String sizeKey,
+      String keepAliveKey, String namePrefix) {
+    this.enabledKey = enabledKey;
+    this.sizeKey = sizeKey;
+    this.keepAliveKey = keepAliveKey;
+    this.namePrefix = namePrefix;
+  }
+
+  /**
+   * Get the shared executor, creating it on first call if enabled.
+   * @param conf configuration
+   * @return the executor, or null if not enabled
+   */
+  public synchronized ScheduledExecutorService get(Configuration conf) {
+    if (executor == null) {
+      if (conf.getBoolean(enabledKey, false)) {
+        int poolSize = conf.getInt(sizeKey, AWS_CLIENT_SHARED_THREADPOOL_SIZE_DEFAULT);
+        int keepAlive = conf.getInt(keepAliveKey, AWS_CLIENT_SHARED_THREADPOOL_KEEPALIVE_DEFAULT);
+        checkArgument(poolSize > 0,
+            "Value of %s must be positive, got: %s", sizeKey, poolSize);

Review Comment:
   S3AUtils.intOption() can combine range checks with retrieval



##########
hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/ITestS3ASharedThreadPoolEnabled.java:
##########
@@ -0,0 +1,97 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.hadoop.fs.s3a;
+
+import org.assertj.core.api.Assertions;
+import org.junit.jupiter.api.Test;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import org.apache.hadoop.conf.Configuration;
+
+import static org.apache.hadoop.fs.s3a.Constants.AWS_S3_ASYNC_CLIENT_SHARED_THREADPOOL_ENABLED;
+import static org.apache.hadoop.fs.s3a.Constants.AWS_S3_ASYNC_CLIENT_SHARED_THREADPOOL_SIZE;
+import static org.apache.hadoop.fs.s3a.Constants.AWS_S3_CLIENT_SHARED_THREADPOOL_ENABLED;
+import static org.apache.hadoop.fs.s3a.Constants.AWS_S3_CLIENT_SHARED_THREADPOOL_SIZE;
+
+/**
+ * Integration test demonstrating that the shared scheduled thread pool bounds
+ * thread growth across many S3AFileSystem instances.
+ * <p>
+ * Background (HADOOP-19862): each S3AFileSystem builds its own AWS SDK clients,
+ * and each client otherwise creates a 5-thread sdk-ScheduledExecutor pool, so
+ * creating many instances grows threads without bound. With the shared pool
+ * enabled, all clients of a type reuse a single pool, so the thread count stays
+ * bounded regardless of how many instances are created.
+ * <p>
+ * This test proves the fix direction (pool enabled, threads bounded);
+ * {@link ITestS3ASharedThreadPoolDisabled} is the control proving the opposite
+ * (pool disabled, threads grow). The two must be separate classes: the holders
+ * are private static final and memoize on first use, so the first configuration
+ * to reach them wins for the JVM. They stay isolated because hadoop-aws runs
+ * tests with reuseForks=false (a fresh JVM per test class); do not merge them
+ * into one class.
+ * <p>
+ * Exact thread counts depend on AWS SDK internals, so the assertion is on the
+ * bound (not exceeding the pool sizes), not an exact number.
+ */
+public class ITestS3ASharedThreadPoolEnabled extends AbstractS3ATestBase {

Review Comment:
   does test class teardown need to do anything about the pools?



##########
hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/ITestS3ASharedThreadPoolEnabled.java:
##########
@@ -0,0 +1,97 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.hadoop.fs.s3a;
+
+import org.assertj.core.api.Assertions;
+import org.junit.jupiter.api.Test;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import org.apache.hadoop.conf.Configuration;
+
+import static org.apache.hadoop.fs.s3a.Constants.AWS_S3_ASYNC_CLIENT_SHARED_THREADPOOL_ENABLED;
+import static org.apache.hadoop.fs.s3a.Constants.AWS_S3_ASYNC_CLIENT_SHARED_THREADPOOL_SIZE;
+import static org.apache.hadoop.fs.s3a.Constants.AWS_S3_CLIENT_SHARED_THREADPOOL_ENABLED;
+import static org.apache.hadoop.fs.s3a.Constants.AWS_S3_CLIENT_SHARED_THREADPOOL_SIZE;
+
+/**
+ * Integration test demonstrating that the shared scheduled thread pool bounds
+ * thread growth across many S3AFileSystem instances.
+ * <p>
+ * Background (HADOOP-19862): each S3AFileSystem builds its own AWS SDK clients,
+ * and each client otherwise creates a 5-thread sdk-ScheduledExecutor pool, so
+ * creating many instances grows threads without bound. With the shared pool
+ * enabled, all clients of a type reuse a single pool, so the thread count stays
+ * bounded regardless of how many instances are created.
+ * <p>
+ * This test proves the fix direction (pool enabled, threads bounded);
+ * {@link ITestS3ASharedThreadPoolDisabled} is the control proving the opposite
+ * (pool disabled, threads grow). The two must be separate classes: the holders
+ * are private static final and memoize on first use, so the first configuration
+ * to reach them wins for the JVM. They stay isolated because hadoop-aws runs
+ * tests with reuseForks=false (a fresh JVM per test class); do not merge them
+ * into one class.
+ * <p>
+ * Exact thread counts depend on AWS SDK internals, so the assertion is on the
+ * bound (not exceeding the pool sizes), not an exact number.
+ */
+public class ITestS3ASharedThreadPoolEnabled extends AbstractS3ATestBase {
+
+  private static final Logger LOG =
+      LoggerFactory.getLogger(ITestS3ASharedThreadPoolEnabled.class);
+
+  private static final int POOL_SIZE = 5;
+
+  /** Number of distinct filesystem instances to create. */
+  private static final int INSTANCES = 20;
+
+  /** Thread name prefixes used by the shared pools (see the factories). */
+  private static final String[] SHARED_POOL_PREFIXES = {
+      "s3a-s3-sync-scheduler",
+      "s3a-s3-async-scheduler",
+  };
+
+  @Override
+  protected Configuration createConfiguration() {
+    Configuration conf = super.createConfiguration();
+    // Enable the shared pools before any client is built, so the static
+    // holders memoize in the enabled state for this JVM.
+    conf.setBoolean(AWS_S3_CLIENT_SHARED_THREADPOOL_ENABLED, true);

Review Comment:
   use removeBaseAndBucketOverrides() to remove bucket overrides fo these before setting them; really screws up test results if you ever actually set them on a bucket...



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Re: [PR] HADOOP-19862: S3A: introduce configurable shared thread pool for AWS SDK clients [hadoop]

Posted by "ajfabbri (via GitHub)" <gi...@apache.org>.
ajfabbri commented on PR #8426:
URL: https://github.com/apache/hadoop/pull/8426#issuecomment-4791806006

   > @ajfabbri — heads-up on CI infra: the hadoop16 Jenkins agent seems to repeatedly disconnect mid-build. On this PR, builds #3, #4, #7, and #8 all ran on hadoop16 and failed with agent-offline / channel-closed errors — not the patch (build #8 actually got a Yetus +1; the node only dropped at teardown). Could it be recycled / taken offline, or flagged to INFRA? It's making pr-merge flaky for anything that runs on that node
   
   @konstantinb I noticed that. Yes we should probabably open an INFRA Jira.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Re: [PR] HADOOP-19862: S3A: introduce configurable shared thread pool for AWS SDK clients [hadoop]

Posted by "ajfabbri (via GitHub)" <gi...@apache.org>.
ajfabbri merged PR #8426:
URL: https://github.com/apache/hadoop/pull/8426


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Re: [PR] HADOOP-19862: S3A: introduce configurable shared thread pool for AWS SDK clients [hadoop]

Posted by "hadoop-yetus (via GitHub)" <gi...@apache.org>.
hadoop-yetus commented on PR #8426:
URL: https://github.com/apache/hadoop/pull/8426#issuecomment-4247676320

   :confetti_ball: **+1 overall**
   
   
   
   
   
   
   | Vote | Subsystem | Runtime |  Logfile | Comment |
   |:----:|----------:|--------:|:--------:|:-------:|
   | +0 :ok: |  reexec  |   0m 32s |  |  Docker mode activated.  |
   |||| _ Prechecks _ |
   | +1 :green_heart: |  dupname  |   0m  0s |  |  No case conflicting files found.  |
   | +0 :ok: |  codespell  |   0m  0s |  |  codespell was not available.  |
   | +0 :ok: |  detsecrets  |   0m  0s |  |  detect-secrets was not available.  |
   | +1 :green_heart: |  @author  |   0m  0s |  |  The patch does not contain any @author tags.  |
   | +1 :green_heart: |  test4tests  |   0m  0s |  |  The patch appears to include 1 new or modified test files.  |
   |||| _ trunk Compile Tests _ |
   | +1 :green_heart: |  mvninstall  |  41m 27s |  |  trunk passed  |
   | +1 :green_heart: |  compile  |   1m  7s |  |  trunk passed with JDK Ubuntu-21.0.10+7-Ubuntu-124.04  |
   | +1 :green_heart: |  compile  |   1m  9s |  |  trunk passed with JDK Ubuntu-17.0.18+8-Ubuntu-124.04.1  |
   | +1 :green_heart: |  checkstyle  |   1m  2s |  |  trunk passed  |
   | +1 :green_heart: |  mvnsite  |   1m 14s |  |  trunk passed  |
   | +1 :green_heart: |  javadoc  |   1m  5s |  |  trunk passed with JDK Ubuntu-21.0.10+7-Ubuntu-124.04  |
   | +1 :green_heart: |  javadoc  |   1m  1s |  |  trunk passed with JDK Ubuntu-17.0.18+8-Ubuntu-124.04.1  |
   | +1 :green_heart: |  spotbugs  |   1m 44s |  |  trunk passed  |
   | +1 :green_heart: |  shadedclient  |  28m 46s |  |  branch has no errors when building and testing our client artifacts.  |
   |||| _ Patch Compile Tests _ |
   | +1 :green_heart: |  mvninstall  |   0m 42s |  |  the patch passed  |
   | +1 :green_heart: |  compile  |   0m 38s |  |  the patch passed with JDK Ubuntu-21.0.10+7-Ubuntu-124.04  |
   | +1 :green_heart: |  javac  |   0m 38s |  |  the patch passed  |
   | +1 :green_heart: |  compile  |   0m 38s |  |  the patch passed with JDK Ubuntu-17.0.18+8-Ubuntu-124.04.1  |
   | +1 :green_heart: |  javac  |   0m 38s |  |  the patch passed  |
   | +1 :green_heart: |  blanks  |   0m  0s |  |  The patch has no blanks issues.  |
   | +1 :green_heart: |  checkstyle  |   0m 28s |  |  the patch passed  |
   | +1 :green_heart: |  mvnsite  |   0m 42s |  |  the patch passed  |
   | +1 :green_heart: |  javadoc  |   0m 31s |  |  the patch passed with JDK Ubuntu-21.0.10+7-Ubuntu-124.04  |
   | +1 :green_heart: |  javadoc  |   0m 31s |  |  the patch passed with JDK Ubuntu-17.0.18+8-Ubuntu-124.04.1  |
   | +1 :green_heart: |  spotbugs  |   1m 21s |  |  the patch passed  |
   | +1 :green_heart: |  shadedclient  |  27m 37s |  |  patch has no errors when building and testing our client artifacts.  |
   |||| _ Other Tests _ |
   | +1 :green_heart: |  unit  |   3m 23s |  |  hadoop-aws in the patch passed.  |
   | +1 :green_heart: |  asflicense  |   0m 36s |  |  The patch does not generate ASF License warnings.  |
   |  |   | 117m 51s |  |  |
   
   
   | Subsystem | Report/Notes |
   |----------:|:-------------|
   | Docker | ClientAPI=1.54 ServerAPI=1.54 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8426/2/artifact/out/Dockerfile |
   | GITHUB PR | https://github.com/apache/hadoop/pull/8426 |
   | Optional Tests | dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets |
   | uname | Linux 10e36e2ee5a9 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux |
   | Build tool | maven |
   | Personality | dev-support/bin/hadoop.sh |
   | git revision | trunk / beb077be13ff4bb812b7298d9f8e5099b5dd7a6c |
   | Default Java | Ubuntu-17.0.18+8-Ubuntu-124.04.1 |
   | Multi-JDK versions | /usr/lib/jvm/java-21-openjdk-amd64:Ubuntu-21.0.10+7-Ubuntu-124.04 /usr/lib/jvm/java-17-openjdk-amd64:Ubuntu-17.0.18+8-Ubuntu-124.04.1 |
   |  Test Results | https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8426/2/testReport/ |
   | Max. process+thread count | 610 (vs. ulimit of 10000) |
   | modules | C: hadoop-tools/hadoop-aws U: hadoop-tools/hadoop-aws |
   | Console output | https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8426/2/console |
   | versions | git=2.43.0 maven=3.9.11 spotbugs=4.9.7 |
   | Powered by | Apache Yetus 0.14.1 https://yetus.apache.org |
   
   
   This message was automatically generated.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Re: [PR] HADOOP-19862: S3A: introduce configurable shared thread pool for AWS SDK clients [hadoop]

Posted by "ajfabbri (via GitHub)" <gi...@apache.org>.
ajfabbri commented on code in PR #8426:
URL: https://github.com/apache/hadoop/pull/8426#discussion_r3422798643


##########
hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/TestSharedScheduledExecutor.java:
##########
@@ -0,0 +1,280 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.hadoop.fs.s3a;
+
+import org.apache.hadoop.conf.Configuration;
+import org.apache.hadoop.fs.s3a.impl.LazySharedThreadPoolHolder;
+import org.assertj.core.api.Assertions;
+import org.junit.jupiter.api.Test;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.concurrent.ScheduledExecutorService;
+import java.util.concurrent.ScheduledThreadPoolExecutor;
+
+import static org.apache.hadoop.fs.s3a.Constants.AWS_S3_CLIENT_SHARED_THREADPOOL_ENABLED;
+import static org.apache.hadoop.fs.s3a.Constants.AWS_S3_CLIENT_SHARED_THREADPOOL_KEEPALIVE;
+import static org.apache.hadoop.fs.s3a.Constants.AWS_S3_CLIENT_SHARED_THREADPOOL_SIZE;
+
+/**
+ * Tests for the shared scheduled executors in DefaultS3ClientFactory.
+ */
+public class TestSharedScheduledExecutor {
+
+  @Test
+  public void testLazyHolderDisabledByDefault() {
+    LazySharedThreadPoolHolder holder = new LazySharedThreadPoolHolder(
+        "test.enabled", "test.size", "test.keepalive", "test-disabled");
+    Configuration conf = new Configuration();
+    ScheduledExecutorService executor = holder.get(conf);
+    Assertions.assertThat(executor)
+        .as("Executor should be null when disabled")
+        .isNull();
+  }
+
+  @Test
+  public void testCreateScheduledExecutorConfiguration() {
+    ScheduledExecutorService executor =
+        LazySharedThreadPoolHolder.createScheduledExecutor("test-scheduler", 10, 30);
+    Assertions.assertThat(executor)
+        .as("Executor should be a ScheduledThreadPoolExecutor")
+        .isInstanceOf(ScheduledThreadPoolExecutor.class);
+
+    ScheduledThreadPoolExecutor poolExecutor = (ScheduledThreadPoolExecutor) executor;
+    Assertions.assertThat(poolExecutor.getCorePoolSize())
+        .as("Core pool size should be 10")
+        .isEqualTo(10);
+    Assertions.assertThat(poolExecutor.allowsCoreThreadTimeOut())
+        .as("Core threads should be allowed to time out")
+        .isTrue();
+
+    executor.shutdown();
+  }
+
+  @Test
+  public void testCreateScheduledExecutorThreadsAreDaemon() throws Exception {
+    ScheduledExecutorService executor =
+        LazySharedThreadPoolHolder.createScheduledExecutor("test-daemon", 5, 60);
+    final boolean[] isDaemon = new boolean[1];
+    executor.submit(() -> {
+      isDaemon[0] = Thread.currentThread().isDaemon();
+    }).get();
+    Assertions.assertThat(isDaemon[0])
+        .as("Executor threads should be daemon threads")
+        .isTrue();
+    executor.shutdown();
+  }
+
+  @Test
+  public void testCreateScheduledExecutorThreadName() throws Exception {
+    ScheduledExecutorService executor =
+        LazySharedThreadPoolHolder.createScheduledExecutor("custom-prefix", 5, 60);
+    final String[] threadName = new String[1];
+    executor.submit(() -> {
+      threadName[0] = Thread.currentThread().getName();
+    }).get();
+    Assertions.assertThat(threadName[0])
+        .as("Thread name should match custom prefix")
+        .startsWith("custom-prefix");
+    executor.shutdown();
+  }
+
+  @Test
+  public void testLazyHolderRejectsNegativePoolSize() {
+    LazySharedThreadPoolHolder holder = new LazySharedThreadPoolHolder(
+        "test.enabled", "test.size", "test.keepalive", "test-pool");
+    Configuration conf = new Configuration();
+    conf.setBoolean("test.enabled", true);
+    conf.setInt("test.size", -1);
+    conf.setInt("test.keepalive", 60);
+    Assertions.assertThatThrownBy(() -> holder.get(conf))
+        .isInstanceOf(IllegalArgumentException.class)
+        .hasMessageContaining("test.size")
+        .hasMessageContaining("must be positive");
+  }
+
+  @Test
+  public void testLazyHolderRejectsZeroPoolSize() {
+    LazySharedThreadPoolHolder holder = new LazySharedThreadPoolHolder(
+        "test.enabled", "test.size", "test.keepalive", "test-pool");
+    Configuration conf = new Configuration();
+    conf.setBoolean("test.enabled", true);
+    conf.setInt("test.size", 0);
+    conf.setInt("test.keepalive", 60);
+    Assertions.assertThatThrownBy(() -> holder.get(conf))
+        .isInstanceOf(IllegalArgumentException.class)
+        .hasMessageContaining("test.size")
+        .hasMessageContaining("must be positive");
+  }
+
+  @Test
+  public void testLazyHolderRejectsNegativeKeepAlive() {
+    LazySharedThreadPoolHolder holder = new LazySharedThreadPoolHolder(
+        "test.enabled", "test.size", "test.keepalive", "test-pool");
+    Configuration conf = new Configuration();
+    conf.setBoolean("test.enabled", true);
+    conf.setInt("test.size", 5);
+    conf.setInt("test.keepalive", -1);
+    Assertions.assertThatThrownBy(() -> holder.get(conf))
+        .isInstanceOf(IllegalArgumentException.class)
+        .hasMessageContaining("test.keepalive")
+        .hasMessageContaining("must be positive");
+  }
+
+  @Test
+  public void testLazyHolderRejectsZeroKeepAlive() {
+    LazySharedThreadPoolHolder holder = new LazySharedThreadPoolHolder(
+        "test.enabled", "test.size", "test.keepalive", "test-pool");
+    Configuration conf = new Configuration();
+    conf.setBoolean("test.enabled", true);
+    conf.setInt("test.size", 5);
+    conf.setInt("test.keepalive", 0);
+    Assertions.assertThatThrownBy(() -> holder.get(conf))
+        .isInstanceOf(IllegalArgumentException.class)
+        .hasMessageContaining("test.keepalive")
+        .hasMessageContaining("must be positive");
+  }
+
+  @Test
+  public void testLazyHolderAcceptsValidConfig() {
+    LazySharedThreadPoolHolder holder = new LazySharedThreadPoolHolder(
+        "test.enabled", "test.size", "test.keepalive", "test-valid");
+    Configuration conf = new Configuration();
+    conf.setBoolean("test.enabled", true);
+    conf.setInt("test.size", 5);
+    conf.setInt("test.keepalive", 30);
+    ScheduledExecutorService executor = holder.get(conf);
+    Assertions.assertThat(executor)
+        .as("Executor should be created with valid config")
+        .isNotNull();
+    executor.shutdown();

Review Comment:
   Wouldn't hurt to assert that the values (size, keepalive) are correct (sepecially since the constructor takes all strings, so it is easy to misplace / swap arguments). (This comment is a nit: totally optional to address or not)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Re: [PR] HADOOP-19862: S3A: introduce configurable shared thread pool for AWS SDK clients [hadoop]

Posted by "konstantinb (via GitHub)" <gi...@apache.org>.
konstantinb commented on PR #8426:
URL: https://github.com/apache/hadoop/pull/8426#issuecomment-4782822445

   @ajfabbri — heads-up on CI infra: the hadoop16 Jenkins agent seems to repeatedly disconnect mid-build. On this PR, builds #3, #4, #7, and #8 all ran on hadoop16 and failed with agent-offline / channel-closed errors — not the patch (build #8 actually got a Yetus +1; the node only dropped at teardown). Could it be recycled / taken offline, or flagged to INFRA? It's making pr-merge flaky for anything that runs on that node


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Re: [PR] HADOOP-19862: S3A: introduce configurable shared thread pool for AWS SDK clients [hadoop]

Posted by "mukund-thakur (via GitHub)" <gi...@apache.org>.
mukund-thakur commented on PR #8426:
URL: https://github.com/apache/hadoop/pull/8426#issuecomment-4802264925

   > My proposal : keep it opt-in for this PR, and flip the default on in a follow-up once it's had real-world exposure across a bigger deployment base (open to alternatives here) — same end state, lower risk. Happy to go straight to default-on now if that's the consensus.
   
   I do think this is safer. You can make this default in next release. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Re: [PR] HADOOP-19862: S3A: introduce configurable shared thread pool for AWS SDK clients [hadoop]

Posted by "konstantinb (via GitHub)" <gi...@apache.org>.
konstantinb commented on PR #8426:
URL: https://github.com/apache/hadoop/pull/8426#issuecomment-4796446796

   I ran the full hadoop-aws integration suite with all four shared pools off, then on, matching the cloud_aws CI invocation (JDK 17; ./mvnw verify -B -Dparallel-tests -Dscale=true), against both LocalStack (the CI endpoint) and real S3 (us-east-1).
   
   - Correctness: identical failing-test set with pools off vs on, on both endpoints. The failures on my local are identical and appear environmental (community-LocalStack emulation gaps; STS/delegation/Kerberos/ACL setup on the test bucket) — none introduced by this change.
   - Performance: no measurable regression. Pools-on matched pools-off on runs identical to CI setup across repeated attempts, and on the operation-heavy real-S3 paths I measured directly (commit protocols, recursive treewalk, huge-file uploads).
   
   So, enabling the shared pools neither changes results nor measurably affects performance in these runs.
   
   Unless someone objects, I will flip the defaults to ON tomorrow and ask for reapprovals


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Re: [PR] HADOOP-19862: S3A: introduce configurable shared thread pool for AWS SDK clients [hadoop]

Posted by "konstantinb (via GitHub)" <gi...@apache.org>.
konstantinb commented on PR #8426:
URL: https://github.com/apache/hadoop/pull/8426#issuecomment-4784666120

   @steveloughran @mukund-thakur — even though it *appears* safe (running in a privately deployed production fork with the pool enabled for ~2.5 months with no evident issues), I'm still hesitant to flip the default.
   
   My worry isn't whether the code works — that evidence covers one workload and the test paths. It's the **blast radius of the flip itself**: every S3A deployment would silently inherit the new shared-executor model on upgrade, often unknowingly, across workloads none of us has exercised. Opt-in is a conscious choice; a default change is inherited — we'd be changing everyone's behavior to fix a problem only some may have hit.
   
   The current approval is also on the opt-in design — @ajfabbri noted that defaulting to disabled "mitigates a lot of the risk … around qualifying different workloads" — so I believe that a default flip should have his and @ahmarsuhail's sign-off.
   
   To help us settle the on/off question with data, I've kicked off a full apples-to-apples comparison on the current revision: the entire `hadoop-aws` integration suite with all four shared pools **off vs on**, `-Dscale=true`, mirroring the `cloud_aws` CI invocation, against both LocalStack and real S3 (`us-east-1`). It's running now; I'll report the results back here so we can weigh the default with the numbers in front of us.
   
   My proposal : keep it opt-in for this PR, and flip the default on in a follow-up once it's had real-world exposure across a bigger deployment base (open to alternatives here) — same end state, lower risk. Happy to go straight to default-on now if that's the consensus.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Re: [PR] HADOOP-19862: S3A: introduce configurable shared thread pool for AWS SDK clients [hadoop]

Posted by "mukund-thakur (via GitHub)" <gi...@apache.org>.
mukund-thakur commented on PR #8426:
URL: https://github.com/apache/hadoop/pull/8426#issuecomment-4782205425

   I took a quick look at understanding the issue. Looks like we are solving an important issue. Didn't review line by line but PR looks good to me overall. 
   I don't mind making this on by default. 
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Re: [PR] HADOOP-19862: S3A: introduce configurable shared thread pool for AWS SDK clients [hadoop]

Posted by "ajfabbri (via GitHub)" <gi...@apache.org>.
ajfabbri commented on code in PR #8426:
URL: https://github.com/apache/hadoop/pull/8426#discussion_r3422764384


##########
hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/impl/LazySharedThreadPoolHolder.java:
##########
@@ -0,0 +1,112 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.hadoop.fs.s3a.impl;
+
+import java.util.Optional;
+import java.util.concurrent.ScheduledExecutorService;
+import java.util.concurrent.ScheduledThreadPoolExecutor;
+import java.util.concurrent.TimeUnit;
+
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import org.apache.hadoop.classification.InterfaceAudience;
+import org.apache.hadoop.classification.InterfaceStability;
+import org.apache.hadoop.conf.Configuration;
+
+import static org.apache.hadoop.fs.s3a.Constants.AWS_CLIENT_SHARED_THREADPOOL_KEEPALIVE_DEFAULT;
+import static org.apache.hadoop.fs.s3a.Constants.AWS_CLIENT_SHARED_THREADPOOL_SIZE_DEFAULT;
+import static org.apache.hadoop.util.Preconditions.checkArgument;
+
+/**
+ * Holder for a lazily initialized shared ScheduledExecutorService.
+ */
+@InterfaceAudience.Private
+@InterfaceStability.Unstable
+public class LazySharedThreadPoolHolder {
+
+  private static final Logger LOG =
+      LoggerFactory.getLogger(LazySharedThreadPoolHolder.class);
+
+  private final String enabledKey;
+  private final String sizeKey;
+  private final String keepAliveKey;
+  private final String namePrefix;
+
+  private volatile Optional<ScheduledExecutorService> executor;
+
+  /**
+   * Create a holder for a lazy shared thread pool.
+   * @param enabledKey config key to enable the shared pool
+   * @param sizeKey config key for pool size
+   * @param keepAliveKey config key for thread keep-alive in seconds
+   * @param namePrefix thread name prefix for debugging
+   */
+  public LazySharedThreadPoolHolder(String enabledKey, String sizeKey,
+      String keepAliveKey, String namePrefix) {
+    this.enabledKey = enabledKey;
+    this.sizeKey = sizeKey;
+    this.keepAliveKey = keepAliveKey;
+    this.namePrefix = namePrefix;
+  }
+
+  /**
+   * Get the shared executor, creating it on first call if enabled.
+   * @param conf configuration
+   * @return the executor, or null if not enabled
+   */
+  public synchronized ScheduledExecutorService get(Configuration conf) {
+    if (executor == null) {
+      if (conf.getBoolean(enabledKey, false)) {
+        int poolSize = conf.getInt(sizeKey, AWS_CLIENT_SHARED_THREADPOOL_SIZE_DEFAULT);
+        int keepAlive = conf.getInt(keepAliveKey, AWS_CLIENT_SHARED_THREADPOOL_KEEPALIVE_DEFAULT);
+        checkArgument(poolSize > 0,
+            "Value of %s must be positive, got: %s", sizeKey, poolSize);
+        checkArgument(keepAlive > 0,
+            "Value of %s must be positive, got: %s", keepAliveKey, keepAlive);
+        executor = Optional.of(createScheduledExecutor(namePrefix, poolSize, keepAlive));
+      } else {
+        executor = Optional.empty();
+      }
+    }
+    return executor.orElse(null);
+  }
+
+  /**
+   * Create a scheduled executor with idle thread timeout.
+   * @param namePrefix thread name prefix for debugging
+   * @param poolSize core pool size
+   * @param keepAliveSeconds keepalive time in seconds
+   * @return the executor
+   */

Review Comment:
   Should we add `@VisibleForTesting` annotation here? Assuming that is the intent.



##########
hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/impl/LazySharedThreadPoolHolder.java:
##########
@@ -0,0 +1,112 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.hadoop.fs.s3a.impl;
+
+import java.util.Optional;
+import java.util.concurrent.ScheduledExecutorService;
+import java.util.concurrent.ScheduledThreadPoolExecutor;
+import java.util.concurrent.TimeUnit;
+
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import org.apache.hadoop.classification.InterfaceAudience;
+import org.apache.hadoop.classification.InterfaceStability;
+import org.apache.hadoop.conf.Configuration;
+
+import static org.apache.hadoop.fs.s3a.Constants.AWS_CLIENT_SHARED_THREADPOOL_KEEPALIVE_DEFAULT;
+import static org.apache.hadoop.fs.s3a.Constants.AWS_CLIENT_SHARED_THREADPOOL_SIZE_DEFAULT;
+import static org.apache.hadoop.util.Preconditions.checkArgument;
+
+/**
+ * Holder for a lazily initialized shared ScheduledExecutorService.
+ */
+@InterfaceAudience.Private
+@InterfaceStability.Unstable
+public class LazySharedThreadPoolHolder {
+
+  private static final Logger LOG =
+      LoggerFactory.getLogger(LazySharedThreadPoolHolder.class);
+
+  private final String enabledKey;
+  private final String sizeKey;
+  private final String keepAliveKey;
+  private final String namePrefix;
+
+  private volatile Optional<ScheduledExecutorService> executor;

Review Comment:
   `volatile` is redundant here since the field is only accessed under `this` object's monitor lock (i.e. `synchronized` method).



##########
hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/TestSharedScheduledExecutor.java:
##########
@@ -0,0 +1,280 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.hadoop.fs.s3a;
+
+import org.apache.hadoop.conf.Configuration;
+import org.apache.hadoop.fs.s3a.impl.LazySharedThreadPoolHolder;
+import org.assertj.core.api.Assertions;
+import org.junit.jupiter.api.Test;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.concurrent.ScheduledExecutorService;
+import java.util.concurrent.ScheduledThreadPoolExecutor;
+
+import static org.apache.hadoop.fs.s3a.Constants.AWS_S3_CLIENT_SHARED_THREADPOOL_ENABLED;
+import static org.apache.hadoop.fs.s3a.Constants.AWS_S3_CLIENT_SHARED_THREADPOOL_KEEPALIVE;
+import static org.apache.hadoop.fs.s3a.Constants.AWS_S3_CLIENT_SHARED_THREADPOOL_SIZE;
+
+/**
+ * Tests for the shared scheduled executors in DefaultS3ClientFactory.
+ */
+public class TestSharedScheduledExecutor {
+
+  @Test
+  public void testLazyHolderDisabledByDefault() {
+    LazySharedThreadPoolHolder holder = new LazySharedThreadPoolHolder(
+        "test.enabled", "test.size", "test.keepalive", "test-disabled");
+    Configuration conf = new Configuration();
+    ScheduledExecutorService executor = holder.get(conf);
+    Assertions.assertThat(executor)
+        .as("Executor should be null when disabled")
+        .isNull();
+  }
+
+  @Test
+  public void testCreateScheduledExecutorConfiguration() {
+    ScheduledExecutorService executor =
+        LazySharedThreadPoolHolder.createScheduledExecutor("test-scheduler", 10, 30);
+    Assertions.assertThat(executor)
+        .as("Executor should be a ScheduledThreadPoolExecutor")
+        .isInstanceOf(ScheduledThreadPoolExecutor.class);
+
+    ScheduledThreadPoolExecutor poolExecutor = (ScheduledThreadPoolExecutor) executor;
+    Assertions.assertThat(poolExecutor.getCorePoolSize())
+        .as("Core pool size should be 10")
+        .isEqualTo(10);
+    Assertions.assertThat(poolExecutor.allowsCoreThreadTimeOut())
+        .as("Core threads should be allowed to time out")
+        .isTrue();
+
+    executor.shutdown();
+  }
+
+  @Test
+  public void testCreateScheduledExecutorThreadsAreDaemon() throws Exception {
+    ScheduledExecutorService executor =
+        LazySharedThreadPoolHolder.createScheduledExecutor("test-daemon", 5, 60);
+    final boolean[] isDaemon = new boolean[1];
+    executor.submit(() -> {
+      isDaemon[0] = Thread.currentThread().isDaemon();
+    }).get();
+    Assertions.assertThat(isDaemon[0])
+        .as("Executor threads should be daemon threads")
+        .isTrue();
+    executor.shutdown();
+  }
+
+  @Test
+  public void testCreateScheduledExecutorThreadName() throws Exception {
+    ScheduledExecutorService executor =
+        LazySharedThreadPoolHolder.createScheduledExecutor("custom-prefix", 5, 60);
+    final String[] threadName = new String[1];
+    executor.submit(() -> {
+      threadName[0] = Thread.currentThread().getName();
+    }).get();
+    Assertions.assertThat(threadName[0])
+        .as("Thread name should match custom prefix")
+        .startsWith("custom-prefix");
+    executor.shutdown();
+  }
+
+  @Test
+  public void testLazyHolderRejectsNegativePoolSize() {
+    LazySharedThreadPoolHolder holder = new LazySharedThreadPoolHolder(
+        "test.enabled", "test.size", "test.keepalive", "test-pool");
+    Configuration conf = new Configuration();
+    conf.setBoolean("test.enabled", true);
+    conf.setInt("test.size", -1);
+    conf.setInt("test.keepalive", 60);
+    Assertions.assertThatThrownBy(() -> holder.get(conf))
+        .isInstanceOf(IllegalArgumentException.class)
+        .hasMessageContaining("test.size")
+        .hasMessageContaining("must be positive");
+  }
+
+  @Test
+  public void testLazyHolderRejectsZeroPoolSize() {
+    LazySharedThreadPoolHolder holder = new LazySharedThreadPoolHolder(
+        "test.enabled", "test.size", "test.keepalive", "test-pool");
+    Configuration conf = new Configuration();
+    conf.setBoolean("test.enabled", true);
+    conf.setInt("test.size", 0);
+    conf.setInt("test.keepalive", 60);
+    Assertions.assertThatThrownBy(() -> holder.get(conf))
+        .isInstanceOf(IllegalArgumentException.class)
+        .hasMessageContaining("test.size")
+        .hasMessageContaining("must be positive");
+  }
+
+  @Test
+  public void testLazyHolderRejectsNegativeKeepAlive() {
+    LazySharedThreadPoolHolder holder = new LazySharedThreadPoolHolder(
+        "test.enabled", "test.size", "test.keepalive", "test-pool");
+    Configuration conf = new Configuration();
+    conf.setBoolean("test.enabled", true);
+    conf.setInt("test.size", 5);
+    conf.setInt("test.keepalive", -1);
+    Assertions.assertThatThrownBy(() -> holder.get(conf))
+        .isInstanceOf(IllegalArgumentException.class)
+        .hasMessageContaining("test.keepalive")
+        .hasMessageContaining("must be positive");
+  }
+
+  @Test
+  public void testLazyHolderRejectsZeroKeepAlive() {
+    LazySharedThreadPoolHolder holder = new LazySharedThreadPoolHolder(
+        "test.enabled", "test.size", "test.keepalive", "test-pool");
+    Configuration conf = new Configuration();
+    conf.setBoolean("test.enabled", true);
+    conf.setInt("test.size", 5);
+    conf.setInt("test.keepalive", 0);
+    Assertions.assertThatThrownBy(() -> holder.get(conf))
+        .isInstanceOf(IllegalArgumentException.class)
+        .hasMessageContaining("test.keepalive")
+        .hasMessageContaining("must be positive");
+  }
+
+  @Test
+  public void testLazyHolderAcceptsValidConfig() {
+    LazySharedThreadPoolHolder holder = new LazySharedThreadPoolHolder(
+        "test.enabled", "test.size", "test.keepalive", "test-valid");
+    Configuration conf = new Configuration();
+    conf.setBoolean("test.enabled", true);
+    conf.setInt("test.size", 5);
+    conf.setInt("test.keepalive", 30);
+    ScheduledExecutorService executor = holder.get(conf);
+    Assertions.assertThat(executor)
+        .as("Executor should be created with valid config")
+        .isNotNull();
+    executor.shutdown();

Review Comment:
   Wouldn't hurt to assert that the values (size, keepalive) are correct (sepecially since the constructor takes all strings, so it is easy to misplace / swap arguments).



##########
hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/Constants.java:
##########
@@ -1948,4 +1948,91 @@ private Constants() {
    *      AWS S3 PutObject API Documentation</a>
    */
   public static final String IF_NONE_MATCH_STAR = "*";
+
+  // ==================== AWS Client Shared Thread Pool Configuration ===========
+  // These settings control whether AWS SDK clients share a thread pool
+  // instead of each client creating its own. This prevents thread leaks
+  // when many S3A filesystem instances are created.
+
+  /**
+   * Default thread pool size for AWS client shared thread pools: {@value}.
+   */
+  public static final int AWS_CLIENT_SHARED_THREADPOOL_SIZE_DEFAULT = 5;
+
+  /**
+   * Default keepalive in seconds for AWS client shared thread pool: {@value}.
+   */
+  public static final int AWS_CLIENT_SHARED_THREADPOOL_KEEPALIVE_DEFAULT = 60;
+
+  /**
+   * Enable shared thread pool for AWS S3 sync client: {@value}.
+   */
+  public static final String AWS_S3_CLIENT_SHARED_THREADPOOL_ENABLED =
+      "fs.s3a.aws.s3.client.shared.threadpool.enabled";
+
+  /**
+   * Thread pool size for AWS S3 sync client shared thread pool: {@value}.
+   */
+  public static final String AWS_S3_CLIENT_SHARED_THREADPOOL_SIZE =
+      "fs.s3a.aws.s3.client.shared.threadpool.size";
+
+  /**
+   * Keepalive in seconds for AWS S3 sync client shared thread pool: {@value}.
+   */
+  public static final String AWS_S3_CLIENT_SHARED_THREADPOOL_KEEPALIVE =
+      "fs.s3a.aws.s3.client.shared.threadpool.keepalive.seconds";
+
+  /**
+   * Enable shared thread pool for AWS S3 async client: {@value}.
+   */
+  public static final String AWS_S3_ASYNC_CLIENT_SHARED_THREADPOOL_ENABLED =
+      "fs.s3a.aws.s3.async.client.shared.threadpool.enabled";
+
+  /**
+   * Thread pool size for AWS S3 async client shared thread pool: {@value}.
+   */
+  public static final String AWS_S3_ASYNC_CLIENT_SHARED_THREADPOOL_SIZE =
+      "fs.s3a.aws.s3.async.client.shared.threadpool.size";
+
+  /**
+   * Keepalive in seconds for AWS S3 async client shared thread pool: {@value}.
+   */
+  public static final String AWS_S3_ASYNC_CLIENT_SHARED_THREADPOOL_KEEPALIVE =
+      "fs.s3a.aws.s3.async.client.shared.threadpool.keepalive.seconds";
+
+  /**
+   * Enable shared thread pool for AWS STS client: {@value}.
+   */
+  public static final String AWS_STS_CLIENT_SHARED_THREADPOOL_ENABLED =
+      "fs.s3a.aws.sts.client.shared.threadpool.enabled";
+
+  /**
+   * Thread pool size for AWS STS client shared thread pool: {@value}.
+   */
+  public static final String AWS_STS_CLIENT_SHARED_THREADPOOL_SIZE =
+      "fs.s3a.aws.sts.client.shared.threadpool.size";
+
+  /**
+   * Keepalive in seconds for AWS STS client shared thread pool: {@value}.
+   */
+  public static final String AWS_STS_CLIENT_SHARED_THREADPOOL_KEEPALIVE =
+      "fs.s3a.aws.sts.client.shared.threadpool.keepalive.seconds";
+
+  /**
+   * Enable shared thread pool for AWS KMS client: {@value}.
+   */
+  public static final String AWS_KMS_CLIENT_SHARED_THREADPOOL_ENABLED =
+      "fs.s3a.aws.kms.client.shared.threadpool.enabled";
+
+  /**
+   * Thread pool size for AWS KMS client shared thread pool: {@value}.
+   */
+  public static final String AWS_KMS_CLIENT_SHARED_THREADPOOL_SIZE =
+      "fs.s3a.aws.kms.client.shared.threadpool.size";
+
+  /**
+   * Keepalive in seconds for AWS KMS client shared thread pool: {@value}.
+   */
+  public static final String AWS_KMS_CLIENT_SHARED_THREADPOOL_KEEPALIVE =
+      "fs.s3a.aws.kms.client.shared.threadpool.keepalive.seconds";

Review Comment:
   Can you please add corresponding entries to `hadoop-common-project/hadoop-common/src/main/resources/core-default.xml`, populated with default values?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Re: [PR] HADOOP-19862: S3A: introduce configurable shared thread pool for AWS SDK clients [hadoop]

Posted by "konstantinb (via GitHub)" <gi...@apache.org>.
konstantinb commented on code in PR #8426:
URL: https://github.com/apache/hadoop/pull/8426#discussion_r3455274073


##########
hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/ITestS3ASharedThreadPoolEnabled.java:
##########
@@ -0,0 +1,97 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.hadoop.fs.s3a;
+
+import org.assertj.core.api.Assertions;
+import org.junit.jupiter.api.Test;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import org.apache.hadoop.conf.Configuration;
+
+import static org.apache.hadoop.fs.s3a.Constants.AWS_S3_ASYNC_CLIENT_SHARED_THREADPOOL_ENABLED;
+import static org.apache.hadoop.fs.s3a.Constants.AWS_S3_ASYNC_CLIENT_SHARED_THREADPOOL_SIZE;
+import static org.apache.hadoop.fs.s3a.Constants.AWS_S3_CLIENT_SHARED_THREADPOOL_ENABLED;
+import static org.apache.hadoop.fs.s3a.Constants.AWS_S3_CLIENT_SHARED_THREADPOOL_SIZE;
+
+/**
+ * Integration test demonstrating that the shared scheduled thread pool bounds
+ * thread growth across many S3AFileSystem instances.
+ * <p>
+ * Background (HADOOP-19862): each S3AFileSystem builds its own AWS SDK clients,
+ * and each client otherwise creates a 5-thread sdk-ScheduledExecutor pool, so
+ * creating many instances grows threads without bound. With the shared pool
+ * enabled, all clients of a type reuse a single pool, so the thread count stays
+ * bounded regardless of how many instances are created.
+ * <p>
+ * This test proves the fix direction (pool enabled, threads bounded);
+ * {@link ITestS3ASharedThreadPoolDisabled} is the control proving the opposite
+ * (pool disabled, threads grow). The two must be separate classes: the holders
+ * are private static final and memoize on first use, so the first configuration
+ * to reach them wins for the JVM. They stay isolated because hadoop-aws runs
+ * tests with reuseForks=false (a fresh JVM per test class); do not merge them
+ * into one class.
+ * <p>
+ * Exact thread counts depend on AWS SDK internals, so the assertion is on the
+ * bound (not exceeding the pool sizes), not an exact number.
+ */
+public class ITestS3ASharedThreadPoolEnabled extends AbstractS3ATestBase {

Review Comment:
   @steveloughran thank you for your review and additional comments
   
   I went back and forth on this one. My current conclusion: teardown doesn't need to touch the pool, so I've left it out and documented the constraint — happy to add a hook if you'd prefer.
   
   On resources, it cleans up after itself: the threads are daemon, and it sets `allowCoreThreadTimeOut(true)` with a 60s keepalive, so idle threads time out and the pool is reaped at JVM exit — it won't accumulate or hold the JVM open.
   
   On isolation, a reset is the only lever — the holder is a JVM-global static that memoizes on first use and then ignores later config. Under `reuseForks=false` that reset is a no-op (each class already runs in its own fresh JVM), and under fork reuse it'd be worse: `shutdownNow()` on the shared pool would reject in-flight scheduled work for any other filesystem still using it. So the enabled/disabled cases are split into two classes, each in its own fork (which is what provides the isolation), and I've noted that in the javadocs.
   
   If you'd still like an explicit test-only shutdown hook regardless, I'd be happy to add one.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Re: [PR] HADOOP-19862: S3A: introduce configurable shared thread pool for AWS SDK clients [hadoop]

Posted by "hadoop-yetus (via GitHub)" <gi...@apache.org>.
hadoop-yetus commented on PR #8426:
URL: https://github.com/apache/hadoop/pull/8426#issuecomment-4775215887

   :confetti_ball: **+1 overall**
   
   
   
   
   
   
   | Vote | Subsystem | Runtime |  Logfile | Comment |
   |:----:|----------:|--------:|:--------:|:-------:|
   | +0 :ok: |  reexec  |  13m  6s |  |  Docker mode activated.  |
   |||| _ Prechecks _ |
   | +1 :green_heart: |  dupname  |   0m  0s |  |  No case conflicting files found.  |
   | +0 :ok: |  codespell  |   0m  0s |  |  codespell was not available.  |
   | +0 :ok: |  detsecrets  |   0m  0s |  |  detect-secrets was not available.  |
   | +0 :ok: |  xmllint  |   0m  0s |  |  xmllint was not available.  |
   | +1 :green_heart: |  @author  |   0m  0s |  |  The patch does not contain any @author tags.  |
   | +1 :green_heart: |  test4tests  |   0m  0s |  |  The patch appears to include 5 new or modified test files.  |
   |||| _ trunk Compile Tests _ |
   | +0 :ok: |  mvndep  |   3m 52s |  |  Maven dependency ordering for branch  |
   | +1 :green_heart: |  mvninstall  |  49m 38s |  |  trunk passed  |
   | +1 :green_heart: |  compile  |  15m 42s |  |  trunk passed with JDK Ubuntu-21.0.11+10-1-24.04.2-Ubuntu  |
   | +1 :green_heart: |  compile  |  16m 27s |  |  trunk passed with JDK Ubuntu-17.0.19+10-1-24.04.2-Ubuntu  |
   | +1 :green_heart: |  checkstyle  |   6m 10s |  |  trunk passed  |
   | +1 :green_heart: |  mvnsite  |   3m 12s |  |  trunk passed  |
   | +1 :green_heart: |  javadoc  |   2m 29s |  |  trunk passed with JDK Ubuntu-21.0.11+10-1-24.04.2-Ubuntu  |
   | +1 :green_heart: |  javadoc  |   2m 19s |  |  trunk passed with JDK Ubuntu-17.0.19+10-1-24.04.2-Ubuntu  |
   | +1 :green_heart: |  spotbugs  |   4m 46s |  |  trunk passed  |
   | +1 :green_heart: |  shadedclient  |  29m 25s |  |  branch has no errors when building and testing our client artifacts.  |
   |||| _ Patch Compile Tests _ |
   | +0 :ok: |  mvndep  |   0m 28s |  |  Maven dependency ordering for patch  |
   | +1 :green_heart: |  mvninstall  |   1m 53s |  |  the patch passed  |
   | +1 :green_heart: |  compile  |  15m  8s |  |  the patch passed with JDK Ubuntu-21.0.11+10-1-24.04.2-Ubuntu  |
   | +1 :green_heart: |  javac  |  15m  8s |  |  the patch passed  |
   | +1 :green_heart: |  compile  |  16m 20s |  |  the patch passed with JDK Ubuntu-17.0.19+10-1-24.04.2-Ubuntu  |
   | +1 :green_heart: |  javac  |  16m 20s |  |  the patch passed  |
   | +1 :green_heart: |  blanks  |   0m  0s |  |  The patch has no blanks issues.  |
   | +1 :green_heart: |  checkstyle  |   5m 27s |  |  the patch passed  |
   | +1 :green_heart: |  mvnsite  |   3m  8s |  |  the patch passed  |
   | +1 :green_heart: |  javadoc  |   2m 26s |  |  the patch passed with JDK Ubuntu-21.0.11+10-1-24.04.2-Ubuntu  |
   | +1 :green_heart: |  javadoc  |   2m 23s |  |  the patch passed with JDK Ubuntu-17.0.19+10-1-24.04.2-Ubuntu  |
   | +1 :green_heart: |  spotbugs  |   5m  6s |  |  the patch passed  |
   | +1 :green_heart: |  shadedclient  |  29m 30s |  |  patch has no errors when building and testing our client artifacts.  |
   |||| _ Other Tests _ |
   | +1 :green_heart: |  unit  |  23m 27s |  |  hadoop-common in the patch passed.  |
   | +1 :green_heart: |  unit  |   3m 43s |  |  hadoop-aws in the patch passed.  |
   | +1 :green_heart: |  asflicense  |   1m 17s |  |  The patch does not generate ASF License warnings.  |
   |  |   | 264m 42s |  |  |
   
   
   | Subsystem | Report/Notes |
   |----------:|:-------------|
   | Docker | ClientAPI=1.55 ServerAPI=1.55 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8426/8/artifact/out/Dockerfile |
   | GITHUB PR | https://github.com/apache/hadoop/pull/8426 |
   | Optional Tests | dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient codespell detsecrets xmllint spotbugs checkstyle |
   | uname | Linux c0c7c9de33d6 5.15.0-177-generic #187-Ubuntu SMP Sat Apr 11 22:54:33 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux |
   | Build tool | maven |
   | Personality | dev-support/bin/hadoop.sh |
   | git revision | trunk / bfcd544e5fa7b578ea29f4deac7708f8fb9c6e95 |
   | Default Java | Ubuntu-17.0.19+10-1-24.04.2-Ubuntu |
   | Multi-JDK versions | /usr/lib/jvm/java-21-openjdk-amd64:Ubuntu-21.0.11+10-1-24.04.2-Ubuntu /usr/lib/jvm/java-17-openjdk-amd64:Ubuntu-17.0.19+10-1-24.04.2-Ubuntu |
   |  Test Results | https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8426/8/testReport/ |
   | Max. process+thread count | 1492 (vs. ulimit of 10000) |
   | modules | C: hadoop-common-project/hadoop-common hadoop-tools/hadoop-aws U: . |
   | Console output | https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8426/8/console |
   | versions | git=2.43.0 maven=3.9.15 spotbugs=4.9.7 |
   | Powered by | Apache Yetus 0.14.1 https://yetus.apache.org |
   
   
   This message was automatically generated.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Re: [PR] HADOOP-19862: S3A: introduce configurable shared thread pool for AWS SDK clients [hadoop]

Posted by "hadoop-yetus (via GitHub)" <gi...@apache.org>.
hadoop-yetus commented on PR #8426:
URL: https://github.com/apache/hadoop/pull/8426#issuecomment-4784674965

   :confetti_ball: **+1 overall**
   
   
   
   
   
   
   | Vote | Subsystem | Runtime |  Logfile | Comment |
   |:----:|----------:|--------:|:--------:|:-------:|
   | +0 :ok: |  reexec  |  12m 23s |  |  Docker mode activated.  |
   |||| _ Prechecks _ |
   | +1 :green_heart: |  dupname  |   0m  1s |  |  No case conflicting files found.  |
   | +0 :ok: |  codespell  |   0m  0s |  |  codespell was not available.  |
   | +0 :ok: |  detsecrets  |   0m  0s |  |  detect-secrets was not available.  |
   | +0 :ok: |  xmllint  |   0m  0s |  |  xmllint was not available.  |
   | +1 :green_heart: |  @author  |   0m  0s |  |  The patch does not contain any @author tags.  |
   | +1 :green_heart: |  test4tests  |   0m  0s |  |  The patch appears to include 5 new or modified test files.  |
   |||| _ trunk Compile Tests _ |
   | +0 :ok: |  mvndep  |   2m 18s |  |  Maven dependency ordering for branch  |
   | +1 :green_heart: |  mvninstall  |  43m 38s |  |  trunk passed  |
   | +1 :green_heart: |  compile  |  16m  8s |  |  trunk passed with JDK Ubuntu-21.0.11+10-1-24.04.2-Ubuntu  |
   | +1 :green_heart: |  compile  |  16m 27s |  |  trunk passed with JDK Ubuntu-17.0.19+10-1-24.04.2-Ubuntu  |
   | +1 :green_heart: |  checkstyle  |   5m 32s |  |  trunk passed  |
   | +1 :green_heart: |  mvnsite  |   3m 14s |  |  trunk passed  |
   | +1 :green_heart: |  javadoc  |   2m 34s |  |  trunk passed with JDK Ubuntu-21.0.11+10-1-24.04.2-Ubuntu  |
   | +1 :green_heart: |  javadoc  |   2m 31s |  |  trunk passed with JDK Ubuntu-17.0.19+10-1-24.04.2-Ubuntu  |
   | +1 :green_heart: |  spotbugs  |   4m 49s |  |  trunk passed  |
   | +1 :green_heart: |  shadedclient  |  30m 48s |  |  branch has no errors when building and testing our client artifacts.  |
   |||| _ Patch Compile Tests _ |
   | +0 :ok: |  mvndep  |   0m 28s |  |  Maven dependency ordering for patch  |
   | +1 :green_heart: |  mvninstall  |   2m  0s |  |  the patch passed  |
   | +1 :green_heart: |  compile  |  17m 43s |  |  the patch passed with JDK Ubuntu-21.0.11+10-1-24.04.2-Ubuntu  |
   | +1 :green_heart: |  javac  |  17m 43s |  |  the patch passed  |
   | +1 :green_heart: |  compile  |  19m 41s |  |  the patch passed with JDK Ubuntu-17.0.19+10-1-24.04.2-Ubuntu  |
   | +1 :green_heart: |  javac  |  19m 41s |  |  the patch passed  |
   | +1 :green_heart: |  blanks  |   0m  0s |  |  The patch has no blanks issues.  |
   | +1 :green_heart: |  checkstyle  |   7m  0s |  |  the patch passed  |
   | +1 :green_heart: |  mvnsite  |   4m  2s |  |  the patch passed  |
   | +1 :green_heart: |  javadoc  |   2m 51s |  |  the patch passed with JDK Ubuntu-21.0.11+10-1-24.04.2-Ubuntu  |
   | +1 :green_heart: |  javadoc  |   2m 47s |  |  the patch passed with JDK Ubuntu-17.0.19+10-1-24.04.2-Ubuntu  |
   | +1 :green_heart: |  spotbugs  |   6m 46s |  |  the patch passed  |
   | +1 :green_heart: |  shadedclient  |  33m 57s |  |  patch has no errors when building and testing our client artifacts.  |
   |||| _ Other Tests _ |
   | +1 :green_heart: |  unit  |  28m 39s |  |  hadoop-common in the patch passed.  |
   | +1 :green_heart: |  unit  |   4m 19s |  |  hadoop-aws in the patch passed.  |
   | +1 :green_heart: |  asflicense  |   1m 16s |  |  The patch does not generate ASF License warnings.  |
   |  |   | 279m  7s |  |  |
   
   
   | Subsystem | Report/Notes |
   |----------:|:-------------|
   | Docker | ClientAPI=1.55 ServerAPI=1.55 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8426/9/artifact/out/Dockerfile |
   | GITHUB PR | https://github.com/apache/hadoop/pull/8426 |
   | Optional Tests | dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient codespell detsecrets xmllint spotbugs checkstyle |
   | uname | Linux 43bdc0e61d20 5.15.0-176-generic #186-Ubuntu SMP Fri Mar 13 11:01:42 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux |
   | Build tool | maven |
   | Personality | dev-support/bin/hadoop.sh |
   | git revision | trunk / 73907d5b746b5a0930972a76ae06034cd5b6869c |
   | Default Java | Ubuntu-17.0.19+10-1-24.04.2-Ubuntu |
   | Multi-JDK versions | /usr/lib/jvm/java-21-openjdk-amd64:Ubuntu-21.0.11+10-1-24.04.2-Ubuntu /usr/lib/jvm/java-17-openjdk-amd64:Ubuntu-17.0.19+10-1-24.04.2-Ubuntu |
   |  Test Results | https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8426/9/testReport/ |
   | Max. process+thread count | 1457 (vs. ulimit of 10000) |
   | modules | C: hadoop-common-project/hadoop-common hadoop-tools/hadoop-aws U: . |
   | Console output | https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8426/9/console |
   | versions | git=2.43.0 maven=3.9.15 spotbugs=4.9.7 |
   | Powered by | Apache Yetus 0.14.1 https://yetus.apache.org |
   
   
   This message was automatically generated.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Re: [PR] HADOOP-19862: S3A: introduce configurable shared thread pool for AWS SDK clients [hadoop]

Posted by "hadoop-yetus (via GitHub)" <gi...@apache.org>.
hadoop-yetus commented on PR #8426:
URL: https://github.com/apache/hadoop/pull/8426#issuecomment-4754355744

   :confetti_ball: **+1 overall**
   
   
   
   
   
   
   | Vote | Subsystem | Runtime |  Logfile | Comment |
   |:----:|----------:|--------:|:--------:|:-------:|
   | +0 :ok: |  reexec  |  12m 59s |  |  Docker mode activated.  |
   |||| _ Prechecks _ |
   | +1 :green_heart: |  dupname  |   0m  0s |  |  No case conflicting files found.  |
   | +0 :ok: |  codespell  |   0m  0s |  |  codespell was not available.  |
   | +0 :ok: |  detsecrets  |   0m  0s |  |  detect-secrets was not available.  |
   | +0 :ok: |  xmllint  |   0m  0s |  |  xmllint was not available.  |
   | +1 :green_heart: |  @author  |   0m  0s |  |  The patch does not contain any @author tags.  |
   | +1 :green_heart: |  test4tests  |   0m  0s |  |  The patch appears to include 5 new or modified test files.  |
   |||| _ trunk Compile Tests _ |
   | +0 :ok: |  mvndep  |   2m  4s |  |  Maven dependency ordering for branch  |
   | +1 :green_heart: |  mvninstall  |  44m 15s |  |  trunk passed  |
   | +1 :green_heart: |  compile  |  16m 12s |  |  trunk passed with JDK Ubuntu-21.0.11+10-1-24.04.2-Ubuntu  |
   | +1 :green_heart: |  compile  |  17m 23s |  |  trunk passed with JDK Ubuntu-17.0.19+10-1-24.04.2-Ubuntu  |
   | +1 :green_heart: |  checkstyle  |   5m 39s |  |  trunk passed  |
   | +1 :green_heart: |  mvnsite  |   3m  7s |  |  trunk passed  |
   | +1 :green_heart: |  javadoc  |   2m 26s |  |  trunk passed with JDK Ubuntu-21.0.11+10-1-24.04.2-Ubuntu  |
   | +1 :green_heart: |  javadoc  |   2m 20s |  |  trunk passed with JDK Ubuntu-17.0.19+10-1-24.04.2-Ubuntu  |
   | +1 :green_heart: |  spotbugs  |   4m 47s |  |  trunk passed  |
   | +1 :green_heart: |  shadedclient  |  31m  0s |  |  branch has no errors when building and testing our client artifacts.  |
   |||| _ Patch Compile Tests _ |
   | +0 :ok: |  mvndep  |   0m 28s |  |  Maven dependency ordering for patch  |
   | +1 :green_heart: |  mvninstall  |   1m 53s |  |  the patch passed  |
   | +1 :green_heart: |  compile  |  15m 41s |  |  the patch passed with JDK Ubuntu-21.0.11+10-1-24.04.2-Ubuntu  |
   | +1 :green_heart: |  javac  |  15m 41s |  |  the patch passed  |
   | +1 :green_heart: |  compile  |  17m 24s |  |  the patch passed with JDK Ubuntu-17.0.19+10-1-24.04.2-Ubuntu  |
   | +1 :green_heart: |  javac  |  17m 24s |  |  the patch passed  |
   | +1 :green_heart: |  blanks  |   0m  0s |  |  The patch has no blanks issues.  |
   | +1 :green_heart: |  checkstyle  |   5m 49s |  |  the patch passed  |
   | +1 :green_heart: |  mvnsite  |   3m 14s |  |  the patch passed  |
   | +1 :green_heart: |  javadoc  |   2m 20s |  |  the patch passed with JDK Ubuntu-21.0.11+10-1-24.04.2-Ubuntu  |
   | +1 :green_heart: |  javadoc  |   2m 30s |  |  the patch passed with JDK Ubuntu-17.0.19+10-1-24.04.2-Ubuntu  |
   | +1 :green_heart: |  spotbugs  |   5m 21s |  |  the patch passed  |
   | +1 :green_heart: |  shadedclient  |  30m  8s |  |  patch has no errors when building and testing our client artifacts.  |
   |||| _ Other Tests _ |
   | +1 :green_heart: |  unit  |  22m 55s |  |  hadoop-common in the patch passed.  |
   | +1 :green_heart: |  unit  |   3m 45s |  |  hadoop-aws in the patch passed.  |
   | +1 :green_heart: |  asflicense  |   1m 12s |  |  The patch does not generate ASF License warnings.  |
   |  |   | 261m 59s |  |  |
   
   
   | Subsystem | Report/Notes |
   |----------:|:-------------|
   | Docker | ClientAPI=1.55 ServerAPI=1.55 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8426/6/artifact/out/Dockerfile |
   | GITHUB PR | https://github.com/apache/hadoop/pull/8426 |
   | Optional Tests | dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient codespell detsecrets xmllint spotbugs checkstyle |
   | uname | Linux eb6f4c99135a 5.15.0-176-generic #186-Ubuntu SMP Fri Mar 13 11:01:42 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux |
   | Build tool | maven |
   | Personality | dev-support/bin/hadoop.sh |
   | git revision | trunk / 61a2dcff90029dc8660e00f714599396721cc905 |
   | Default Java | Ubuntu-17.0.19+10-1-24.04.2-Ubuntu |
   | Multi-JDK versions | /usr/lib/jvm/java-21-openjdk-amd64:Ubuntu-21.0.11+10-1-24.04.2-Ubuntu /usr/lib/jvm/java-17-openjdk-amd64:Ubuntu-17.0.19+10-1-24.04.2-Ubuntu |
   |  Test Results | https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8426/6/testReport/ |
   | Max. process+thread count | 3149 (vs. ulimit of 10000) |
   | modules | C: hadoop-common-project/hadoop-common hadoop-tools/hadoop-aws U: . |
   | Console output | https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8426/6/console |
   | versions | git=2.43.0 maven=3.9.15 spotbugs=4.9.7 |
   | Powered by | Apache Yetus 0.14.1 https://yetus.apache.org |
   
   
   This message was automatically generated.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Re: [PR] HADOOP-19862: S3A: introduce configurable shared thread pool for AWS SDK clients [hadoop]

Posted by "ajfabbri (via GitHub)" <gi...@apache.org>.
ajfabbri commented on PR #8426:
URL: https://github.com/apache/hadoop/pull/8426#issuecomment-4897832389

   Thanks for your patience @konstantinb. I will run a fresh set of tests on this latest branch and merge if I don't see any issues


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Re: [PR] HADOOP-19862: S3A: introduce configurable shared thread pool for AWS SDK clients [hadoop]

Posted by "hadoop-yetus (via GitHub)" <gi...@apache.org>.
hadoop-yetus commented on PR #8426:
URL: https://github.com/apache/hadoop/pull/8426#issuecomment-4246848105

   :broken_heart: **-1 overall**
   
   
   
   
   
   
   | Vote | Subsystem | Runtime |  Logfile | Comment |
   |:----:|----------:|--------:|:--------:|:-------:|
   | +0 :ok: |  reexec  |   0m 33s |  |  Docker mode activated.  |
   |||| _ Prechecks _ |
   | +1 :green_heart: |  dupname  |   0m  1s |  |  No case conflicting files found.  |
   | +0 :ok: |  codespell  |   0m  0s |  |  codespell was not available.  |
   | +0 :ok: |  detsecrets  |   0m  0s |  |  detect-secrets was not available.  |
   | +1 :green_heart: |  @author  |   0m  0s |  |  The patch does not contain any @author tags.  |
   | +1 :green_heart: |  test4tests  |   0m  0s |  |  The patch appears to include 1 new or modified test files.  |
   |||| _ trunk Compile Tests _ |
   | +1 :green_heart: |  mvninstall  |  41m 32s |  |  trunk passed  |
   | +1 :green_heart: |  compile  |   1m 10s |  |  trunk passed with JDK Ubuntu-21.0.10+7-Ubuntu-124.04  |
   | +1 :green_heart: |  compile  |   1m 10s |  |  trunk passed with JDK Ubuntu-17.0.18+8-Ubuntu-124.04.1  |
   | +1 :green_heart: |  checkstyle  |   1m  2s |  |  trunk passed  |
   | +1 :green_heart: |  mvnsite  |   1m 13s |  |  trunk passed  |
   | +1 :green_heart: |  javadoc  |   1m  5s |  |  trunk passed with JDK Ubuntu-21.0.10+7-Ubuntu-124.04  |
   | +1 :green_heart: |  javadoc  |   1m  2s |  |  trunk passed with JDK Ubuntu-17.0.18+8-Ubuntu-124.04.1  |
   | +1 :green_heart: |  spotbugs  |   1m 45s |  |  trunk passed  |
   | +1 :green_heart: |  shadedclient  |  28m 40s |  |  branch has no errors when building and testing our client artifacts.  |
   |||| _ Patch Compile Tests _ |
   | -1 :x: |  mvninstall  |   0m 37s | [/patch-mvninstall-hadoop-tools_hadoop-aws.txt](https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8426/1/artifact/out/patch-mvninstall-hadoop-tools_hadoop-aws.txt) |  hadoop-aws in the patch failed.  |
   | -1 :x: |  compile  |   0m 36s | [/patch-compile-hadoop-tools_hadoop-aws-jdkUbuntu-21.0.10+7-Ubuntu-124.04.txt](https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8426/1/artifact/out/patch-compile-hadoop-tools_hadoop-aws-jdkUbuntu-21.0.10+7-Ubuntu-124.04.txt) |  hadoop-aws in the patch failed with JDK Ubuntu-21.0.10+7-Ubuntu-124.04.  |
   | -1 :x: |  javac  |   0m 36s | [/patch-compile-hadoop-tools_hadoop-aws-jdkUbuntu-21.0.10+7-Ubuntu-124.04.txt](https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8426/1/artifact/out/patch-compile-hadoop-tools_hadoop-aws-jdkUbuntu-21.0.10+7-Ubuntu-124.04.txt) |  hadoop-aws in the patch failed with JDK Ubuntu-21.0.10+7-Ubuntu-124.04.  |
   | -1 :x: |  compile  |   0m 37s | [/patch-compile-hadoop-tools_hadoop-aws-jdkUbuntu-17.0.18+8-Ubuntu-124.04.1.txt](https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8426/1/artifact/out/patch-compile-hadoop-tools_hadoop-aws-jdkUbuntu-17.0.18+8-Ubuntu-124.04.1.txt) |  hadoop-aws in the patch failed with JDK Ubuntu-17.0.18+8-Ubuntu-124.04.1.  |
   | -1 :x: |  javac  |   0m 37s | [/patch-compile-hadoop-tools_hadoop-aws-jdkUbuntu-17.0.18+8-Ubuntu-124.04.1.txt](https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8426/1/artifact/out/patch-compile-hadoop-tools_hadoop-aws-jdkUbuntu-17.0.18+8-Ubuntu-124.04.1.txt) |  hadoop-aws in the patch failed with JDK Ubuntu-17.0.18+8-Ubuntu-124.04.1.  |
   | +1 :green_heart: |  blanks  |   0m  0s |  |  The patch has no blanks issues.  |
   | +1 :green_heart: |  checkstyle  |   0m 27s |  |  the patch passed  |
   | -1 :x: |  mvnsite  |   0m 37s | [/patch-mvnsite-hadoop-tools_hadoop-aws.txt](https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8426/1/artifact/out/patch-mvnsite-hadoop-tools_hadoop-aws.txt) |  hadoop-aws in the patch failed.  |
   | +1 :green_heart: |  javadoc  |   0m 31s |  |  the patch passed with JDK Ubuntu-21.0.10+7-Ubuntu-124.04  |
   | +1 :green_heart: |  javadoc  |   0m 30s |  |  the patch passed with JDK Ubuntu-17.0.18+8-Ubuntu-124.04.1  |
   | -1 :x: |  spotbugs  |   0m 37s | [/patch-spotbugs-hadoop-tools_hadoop-aws.txt](https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8426/1/artifact/out/patch-spotbugs-hadoop-tools_hadoop-aws.txt) |  hadoop-aws in the patch failed.  |
   | +1 :green_heart: |  shadedclient  |  31m  5s |  |  patch has no errors when building and testing our client artifacts.  |
   |||| _ Other Tests _ |
   | -1 :x: |  unit  |   0m 41s | [/patch-unit-hadoop-tools_hadoop-aws.txt](https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8426/1/artifact/out/patch-unit-hadoop-tools_hadoop-aws.txt) |  hadoop-aws in the patch failed.  |
   | +1 :green_heart: |  asflicense  |   0m 35s |  |  The patch does not generate ASF License warnings.  |
   |  |   | 114m  3s |  |  |
   
   
   | Subsystem | Report/Notes |
   |----------:|:-------------|
   | Docker | ClientAPI=1.54 ServerAPI=1.54 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8426/1/artifact/out/Dockerfile |
   | GITHUB PR | https://github.com/apache/hadoop/pull/8426 |
   | Optional Tests | dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets |
   | uname | Linux f5148ce9b6b2 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux |
   | Build tool | maven |
   | Personality | dev-support/bin/hadoop.sh |
   | git revision | trunk / e6aad4387fc45744e5088f030a985279ae1357c6 |
   | Default Java | Ubuntu-17.0.18+8-Ubuntu-124.04.1 |
   | Multi-JDK versions | /usr/lib/jvm/java-21-openjdk-amd64:Ubuntu-21.0.10+7-Ubuntu-124.04 /usr/lib/jvm/java-17-openjdk-amd64:Ubuntu-17.0.18+8-Ubuntu-124.04.1 |
   |  Test Results | https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8426/1/testReport/ |
   | Max. process+thread count | 632 (vs. ulimit of 10000) |
   | modules | C: hadoop-tools/hadoop-aws U: hadoop-tools/hadoop-aws |
   | Console output | https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8426/1/console |
   | versions | git=2.43.0 maven=3.9.11 spotbugs=4.9.7 |
   | Powered by | Apache Yetus 0.14.1 https://yetus.apache.org |
   
   
   This message was automatically generated.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org