Selaa lähdekoodia

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 vuotta sitten
vanhempi
commit
d2774ea3eb
2 muutettua tiedostoa jossa 6 lisäystä ja 0 poistoa
  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
     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
 
   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");
     excludeFile = new Path(dir, "exclude");
     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);
 
     MiniDFSCluster cluster = new MiniDFSCluster(conf, numDatanodes, true, null);