Ver código fonte

HADOOP-3985. Fix TestHDFSServerPorts to use random ports. (Hairong Kuang
via omalley)


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

Owen O'Malley 17 anos atrás
pai
commit
ffcaceefd5

+ 3 - 0
CHANGES.txt

@@ -351,6 +351,9 @@ Trunk (unreleased changes)
     HADOOP-3958. Fix TestMapRed to check the success of test-job. (omalley via
     acmurthy)
 
+    HADOOP-3985. Fix TestHDFSServerPorts to use random ports.  (Hairong Kuang 
+    via omalley)
+
 Release 0.18.0 - 2008-08-19
 
   INCOMPATIBLE CHANGES

+ 1 - 0
src/test/org/apache/hadoop/hdfs/TestHDFSServerPorts.java

@@ -182,6 +182,7 @@ public class TestHDFSServerPorts extends TestCase {
       // both ports are different from the name-node ones
       conf2.set("dfs.datanode.address", NAME_NODE_HOST + "0");
       conf2.set("dfs.datanode.http.address", NAME_NODE_HTTP_HOST + "0");
+      conf2.set("dfs.datanode.ipc.address", NAME_NODE_HOST + "0");
       started = canStartDataNode(conf2);
       assertTrue(started); // should start now
     } finally {