From 27807e4ccb5601173d09caf82029f9ec37067b47 Mon Sep 17 00:00:00 2001 From: Sammi Chen Date: Fri, 15 Dec 2017 13:53:48 +0800 Subject: [PATCH] HADOOP-15104. Aliyun OSS: change the default value of max error retry. Contributed by Jinhu Wu. (cherry picked from commit ce04340ec73617daff74378056a95c5d0cc0a790) --- .../main/java/org/apache/hadoop/fs/aliyun/oss/Constants.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-tools/hadoop-aliyun/src/main/java/org/apache/hadoop/fs/aliyun/oss/Constants.java b/hadoop-tools/hadoop-aliyun/src/main/java/org/apache/hadoop/fs/aliyun/oss/Constants.java index baa171fc5f0..dd71842fb87 100644 --- a/hadoop-tools/hadoop-aliyun/src/main/java/org/apache/hadoop/fs/aliyun/oss/Constants.java +++ b/hadoop-tools/hadoop-aliyun/src/main/java/org/apache/hadoop/fs/aliyun/oss/Constants.java @@ -66,7 +66,7 @@ public final class Constants { // Number of times we should retry errors public static final String MAX_ERROR_RETRIES_KEY = "fs.oss.attempts.maximum"; - public static final int MAX_ERROR_RETRIES_DEFAULT = 20; + public static final int MAX_ERROR_RETRIES_DEFAULT = 10; // Time until we give up trying to establish a connection to oss public static final String ESTABLISH_TIMEOUT_KEY =