You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by we...@apache.org on 2021/01/05 05:27:43 UTC
[hadoop] branch branch-3.3 updated: HDFS-15719. [Hadoop 3] Both
NameNodes can crash simultaneously due to the short JN socket timeout
(#2533)
This is an automated email from the ASF dual-hosted git repository.
weichiu pushed a commit to branch branch-3.3
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/branch-3.3 by this push:
new 94c126c HDFS-15719. [Hadoop 3] Both NameNodes can crash simultaneously due to the short JN socket timeout (#2533)
94c126c is described below
commit 94c126cc9e9aadaf9aa28ebd55a8712aca54e709
Author: Wei-Chiu Chuang <we...@apache.org>
AuthorDate: Mon Jan 4 20:54:44 2021 -0800
HDFS-15719. [Hadoop 3] Both NameNodes can crash simultaneously due to the short JN socket timeout (#2533)
(cherry picked from commit 2b4febcf576e2da29ab86e2920302b82b47e435d)
---
.../main/java/org/apache/hadoop/fs/CommonConfigurationKeysPublic.java | 2 +-
.../hadoop-common/src/main/java/org/apache/hadoop/http/HttpServer2.java | 2 +-
hadoop-common-project/hadoop-common/src/main/resources/core-default.xml | 2 +-
hadoop-common-project/hadoop-kms/src/main/resources/kms-default.xml | 2 +-
.../hadoop-hdfs-httpfs/src/main/resources/httpfs-default.xml | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/CommonConfigurationKeysPublic.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/CommonConfigurationKeysPublic.java
index f13ea21..0044b6a 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/CommonConfigurationKeysPublic.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/CommonConfigurationKeysPublic.java
@@ -1017,6 +1017,6 @@ public class CommonConfigurationKeysPublic {
*/
public static final String HADOOP_HTTP_IDLE_TIMEOUT_MS_KEY =
"hadoop.http.idle_timeout.ms";
- public static final int HADOOP_HTTP_IDLE_TIMEOUT_MS_DEFAULT = 1000;
+ public static final int HADOOP_HTTP_IDLE_TIMEOUT_MS_DEFAULT = 60000;
}
diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/http/HttpServer2.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/http/HttpServer2.java
index dfc9436..cdc2a74 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/http/HttpServer2.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/http/HttpServer2.java
@@ -148,7 +148,7 @@ public final class HttpServer2 implements FilterContainer {
// idle timeout in milliseconds
public static final String HTTP_IDLE_TIMEOUT_MS_KEY =
"hadoop.http.idle_timeout.ms";
- public static final int HTTP_IDLE_TIMEOUT_MS_DEFAULT = 10000;
+ public static final int HTTP_IDLE_TIMEOUT_MS_DEFAULT = 60000;
public static final String HTTP_TEMP_DIR_KEY = "hadoop.http.temp.dir";
public static final String FILTER_INITIALIZER_PROPERTY
diff --git a/hadoop-common-project/hadoop-common/src/main/resources/core-default.xml b/hadoop-common-project/hadoop-common/src/main/resources/core-default.xml
index 2c3f14a..dbcf5c5 100644
--- a/hadoop-common-project/hadoop-common/src/main/resources/core-default.xml
+++ b/hadoop-common-project/hadoop-common/src/main/resources/core-default.xml
@@ -50,7 +50,7 @@
<property>
<name>hadoop.http.idle_timeout.ms</name>
- <value>1000</value>
+ <value>60000</value>
<description>
NN/JN/DN Server connection timeout in milliseconds.
</description>
diff --git a/hadoop-common-project/hadoop-kms/src/main/resources/kms-default.xml b/hadoop-common-project/hadoop-kms/src/main/resources/kms-default.xml
index 783f4e6..134326f 100644
--- a/hadoop-common-project/hadoop-kms/src/main/resources/kms-default.xml
+++ b/hadoop-common-project/hadoop-kms/src/main/resources/kms-default.xml
@@ -103,7 +103,7 @@
<property>
<name>hadoop.http.idle_timeout.ms</name>
- <value>1000</value>
+ <value>60000</value>
<description>
KMS Server connection timeout in milliseconds.
</description>
diff --git a/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/resources/httpfs-default.xml b/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/resources/httpfs-default.xml
index 50a16af..869e4e5 100644
--- a/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/resources/httpfs-default.xml
+++ b/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/resources/httpfs-default.xml
@@ -56,7 +56,7 @@
<!-- HTTP properties -->
<property>
<name>hadoop.http.idle_timeout.ms</name>
- <value>1000</value>
+ <value>60000</value>
<description>
Httpfs Server connection timeout in milliseconds.
</description>
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org