浏览代码

HDFS-13719. Docs around dfs.image.transfer.timeout are misleading. Contributed by Kitti Nansi.

(cherry picked from commit 913417bbeab558154fbcc833af54664e7eeba97e)
Andrew Wang 6 年之前
父节点
当前提交
ce602fa845
共有 1 个文件被更改,包括 5 次插入8 次删除
  1. 5 8
      hadoop-hdfs-project/hadoop-hdfs/src/main/resources/hdfs-default.xml

+ 5 - 8
hadoop-hdfs-project/hadoop-hdfs/src/main/resources/hdfs-default.xml

@@ -1244,11 +1244,10 @@
   <name>dfs.image.transfer.timeout</name>
   <name>dfs.image.transfer.timeout</name>
   <value>60000</value>
   <value>60000</value>
   <description>
   <description>
-        Socket timeout for image transfer in milliseconds. This timeout and the related
-        dfs.image.transfer.bandwidthPerSec parameter should be configured such
-        that normal image transfer can complete successfully.
-        This timeout prevents client hangs when the sender fails during
-        image transfer. This is socket timeout during image transfer.
+        Socket timeout for the HttpURLConnection instance used in the image
+        transfer. This is measured in milliseconds.
+        This timeout prevents client hangs if the connection is idle
+        for this configured timeout, during image transfer.
   </description>
   </description>
 </property>
 </property>
 
 
@@ -1259,9 +1258,7 @@
         Maximum bandwidth used for regular image transfers (instead of
         Maximum bandwidth used for regular image transfers (instead of
         bootstrapping the standby namenode), in bytes per second.
         bootstrapping the standby namenode), in bytes per second.
         This can help keep normal namenode operations responsive during
         This can help keep normal namenode operations responsive during
-        checkpointing. The maximum bandwidth and timeout in
-        dfs.image.transfer.timeout should be set such that normal image
-        transfers can complete successfully.
+        checkpointing.
         A default value of 0 indicates that throttling is disabled.
         A default value of 0 indicates that throttling is disabled.
         The maximum bandwidth used for bootstrapping standby namenode is
         The maximum bandwidth used for bootstrapping standby namenode is
         configured with dfs.image.transfer-bootstrap-standby.bandwidthPerSec.
         configured with dfs.image.transfer-bootstrap-standby.bandwidthPerSec.