Browse Source

HADOOP-5156. TestHeartbeatHandling uses MiniDFSCluster.getNamesystem() which does not exist in branch 0.19 and 0.20. Contributed by Hairong Kuang.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/core/branches/branch-0.20@740132 13f79535-47bb-0310-9956-ffa450edef68
Hairong Kuang 16 years ago
parent
commit
19f0b7b944

+ 3 - 0
CHANGES.txt

@@ -658,6 +658,9 @@ Release 0.19.1 - Unreleased
     HADOOP-5034. NameNode should send both replication and deletion requests
     to DataNode in one reply to a heartbeat. (hairong)
 
+    HADOOP-556. TestHeartbeatHandling uses MiiDFSCluster.getNamesystem()
+    which does not exit in branch 0.19 and 0.20. (hairong)
+
 Release 0.19.0 - 2008-11-18
 
   INCOMPATIBLE CHANGES

+ 1 - 1
src/test/org/apache/hadoop/hdfs/server/namenode/TestHeartbeatHandling.java

@@ -27,7 +27,7 @@ public class TestHeartbeatHandling extends TestCase {
     final MiniDFSCluster cluster = new MiniDFSCluster(conf, 1, true, null);
     try {
       cluster.waitActive();
-      final FSNamesystem namesystem = cluster.getNamesystem();
+      final FSNamesystem namesystem = cluster.getNameNode().getNamesystem();
       final DatanodeRegistration nodeReg = cluster.getDataNodes().get(0).dnRegistration;
       DatanodeDescriptor dd = namesystem.getDatanode(nodeReg);