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

nicholasjiang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/celeborn.git


The following commit(s) were added to refs/heads/main by this push:
     new ca8533c83 [CELEBORN-2300] Change the default value of 
celeborn.port.maxRetries from 1 to 16
ca8533c83 is described below

commit ca8533c8390bfcdcb418144e9fc95c3561fe641a
Author: sychen <[email protected]>
AuthorDate: Wed Apr 8 10:55:07 2026 +0800

    [CELEBORN-2300] Change the default value of celeborn.port.maxRetries from 1 
to 16
    
    ### What changes were proposed in this pull request?
    
    ### Why are the changes needed?
    
    Align with spark.port.maxRetries, default to 16 retries.
    
    ```java
    ERROR Executor: Exception in task 1153.0 in stage 11763.0 (TID 516674)
    java.lang.RuntimeException: java.net.BindException: Address already in use: 
Service 'ShuffleClient' failed after 1 retries (on a random free port)! 
Consider explicitly setting the appropriate binding address for the service 
'ShuffleClient' to the correct binding address.
            at 
org.apache.spark.shuffle.celeborn.SparkShuffleManager.getWriter(SparkShuffleManager.java:310)
    ```
    
    ### Does this PR resolve a correctness bug?
    No
    
    ### Does this PR introduce _any_ user-facing change?
    Yes
    
    ### How was this patch tested?
    GHA
    
    Closes #3648 from cxzl25/CELEBORN-2300.
    
    Authored-by: sychen <[email protected]>
    Signed-off-by: SteNicholas <[email protected]>
---
 common/src/main/scala/org/apache/celeborn/common/CelebornConf.scala | 2 +-
 docs/configuration/network.md                                       | 2 +-
 docs/migration.md                                                   | 2 ++
 3 files changed, 4 insertions(+), 2 deletions(-)

diff --git 
a/common/src/main/scala/org/apache/celeborn/common/CelebornConf.scala 
b/common/src/main/scala/org/apache/celeborn/common/CelebornConf.scala
index 95d1b22f9..59b729bf0 100644
--- a/common/src/main/scala/org/apache/celeborn/common/CelebornConf.scala
+++ b/common/src/main/scala/org/apache/celeborn/common/CelebornConf.scala
@@ -2018,7 +2018,7 @@ object CelebornConf extends Logging {
       .doc("When port is occupied, we will retry for max retry times.")
       .version("0.2.0")
       .intConf
-      .createWithDefault(1)
+      .createWithDefault(16)
 
   val RPC_IO_THREADS: OptionalConfigEntry[Int] =
     buildConf("celeborn.rpc.io.threads")
diff --git a/docs/configuration/network.md b/docs/configuration/network.md
index 44c06ddf1..636bca1bc 100644
--- a/docs/configuration/network.md
+++ b/docs/configuration/network.md
@@ -49,7 +49,7 @@ license: |
 | celeborn.network.memory.allocator.numArenas | &lt;undefined&gt; | false | 
Number of arenas for pooled memory allocator. Default value is 
Runtime.getRuntime.availableProcessors, min value is 2. | 0.3.0 |  | 
 | celeborn.network.memory.allocator.verbose.metric | false | false | Whether 
to enable verbose metric for pooled allocator. | 0.3.0 |  | 
 | celeborn.network.timeout | 240s | false | Default timeout for network 
operations. | 0.2.0 |  | 
-| celeborn.port.maxRetries | 1 | false | When port is occupied, we will retry 
for max retry times. | 0.2.0 |  | 
+| celeborn.port.maxRetries | 16 | false | When port is occupied, we will retry 
for max retry times. | 0.2.0 |  | 
 | celeborn.rpc.RpcEndpointVerifier.separate.enabled | true | false | Whether 
to enable dispatcher process RpcEndpointVerifier's request separately. | 0.7.0 
|  | 
 | celeborn.rpc.askTimeout | 60s | false | Timeout for RPC ask operations. It's 
recommended to set at least `240s` when `HDFS` is enabled in 
`celeborn.storage.availableTypes` | 0.2.0 |  | 
 | celeborn.rpc.connect.threads | 64 | false |  | 0.2.0 |  | 
diff --git a/docs/migration.md b/docs/migration.md
index 810f88b2b..8b3625f44 100644
--- a/docs/migration.md
+++ b/docs/migration.md
@@ -35,6 +35,8 @@ license: |
 
 - Since 0.7.0, Celeborn removed `celeborn.network.memory.allocator.pooled`. 
Please use `celeborn.network.memory.allocator.type` instead.
 
+- Since 0.7.0, Celeborn changed the default value of 
`celeborn.port.maxRetries` from `1` to `16`.
+
 # Upgrading from 0.5 to 0.6
 
 - Since 0.6.0, Celeborn deprecate 
`celeborn.client.spark.fetch.throwsFetchFailure`. Please use 
`celeborn.client.spark.stageRerun.enabled` instead.

Reply via email to