Browse Source

HADOOP-3486. Change default for initial block report to 0 seconds
and document it. Contributed by Sanjay Radia.


git-svn-id: https://svn.apache.org/repos/asf/hadoop/core/trunk@663306 13f79535-47bb-0310-9956-ffa450edef68

Owen O'Malley 17 years ago
parent
commit
3f030d0954
3 changed files with 9 additions and 1 deletions
  1. 3 0
      CHANGES.txt
  2. 5 0
      conf/hadoop-default.xml
  3. 1 1
      src/java/org/apache/hadoop/dfs/FSConstants.java

+ 3 - 0
CHANGES.txt

@@ -198,6 +198,9 @@ Trunk (unreleased changes)
     HADOOP-3429. Increases the size of the buffers used for the communication
     for Streaming jobs. (Amareshwari Sriramadasu via ddas)
 
+    HADOOP-3486. Change default for initial block report to 0 seconds
+    and document it. (Sanjay Radia via omalley)
+
   OPTIMIZATIONS
 
     HADOOP-3274. The default constructor of BytesWritable creates empty 

+ 5 - 0
conf/hadoop-default.xml

@@ -456,6 +456,11 @@ creations/deletions), or "all".</description>
   <description>Determines block reporting interval in milliseconds.</description>
 </property>
 
+<property>
+  <name>dfs.blockreport.initialDelay</name>  <value>0</value>
+  <description>Delay for first block report in seconds.</description>
+</property>
+
 <property>
   <name>dfs.heartbeat.interval</name>
   <value>3</value>

+ 1 - 1
src/java/org/apache/hadoop/dfs/FSConstants.java

@@ -120,7 +120,7 @@ public interface FSConstants {
   //
   public static long HEARTBEAT_INTERVAL = 3;
   public static long BLOCKREPORT_INTERVAL = 60 * 60 * 1000;
-  public static long BLOCKREPORT_INITIAL_DELAY = 60;
+  public static long BLOCKREPORT_INITIAL_DELAY = 0;
   public static final long LEASE_SOFTLIMIT_PERIOD = 60 * 1000;
   public static final long LEASE_HARDLIMIT_PERIOD = 60 * LEASE_SOFTLIMIT_PERIOD;
   public static int READ_TIMEOUT = 60 * 1000;