瀏覽代碼

HADOOP-2714. TestDecommission failed on windows because the replication
request was timing out. (dhruba)



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

Dhruba Borthakur 17 年之前
父節點
當前提交
d2774ea3eb
共有 2 個文件被更改,包括 6 次插入0 次删除
  1. 3 0
      CHANGES.txt
  2. 3 0
      src/test/org/apache/hadoop/dfs/TestDecommission.java

+ 3 - 0
CHANGES.txt

@@ -585,6 +585,9 @@ Trunk (unreleased changes)
     check if the parent Java task is running, and exit if the parent isn't
     check if the parent Java task is running, and exit if the parent isn't
     alive and responding. (Amareshwari Sri Ramadasu via acmurthy) 
     alive and responding. (Amareshwari Sri Ramadasu via acmurthy) 
 
 
+    HADOOP-2714. TestDecommission failed on windows because the replication
+    request was timing out. (dhruba)
+
 Release 0.15.3 - 2008-01-18
 Release 0.15.3 - 2008-01-18
 
 
   BUG FIXES
   BUG FIXES

+ 3 - 0
src/test/org/apache/hadoop/dfs/TestDecommission.java

@@ -271,6 +271,9 @@ public class TestDecommission extends TestCase {
     hostsFile = new Path(dir, "hosts");
     hostsFile = new Path(dir, "hosts");
     excludeFile = new Path(dir, "exclude");
     excludeFile = new Path(dir, "exclude");
     conf.set("dfs.hosts.exclude", excludeFile.toUri().getPath());
     conf.set("dfs.hosts.exclude", excludeFile.toUri().getPath());
+    conf.setInt("heartbeat.recheck.interval", 2000);
+    conf.setInt("dfs.heartbeat.interval", 1);
+    conf.setInt("dfs.replication.pending.timeout.sec", 4);
     writeConfigFile(localFileSys, excludeFile, null);
     writeConfigFile(localFileSys, excludeFile, null);
 
 
     MiniDFSCluster cluster = new MiniDFSCluster(conf, numDatanodes, true, null);
     MiniDFSCluster cluster = new MiniDFSCluster(conf, numDatanodes, true, null);