浏览代码

HDFS-1404. TestNodeCount logic incorrect in branch-0.20. Contributed by Todd Lipcon.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.20@997942 13f79535-47bb-0310-9956-ffa450edef68
Eli Collins 14 年之前
父节点
当前提交
ae1c2e3236
共有 2 个文件被更改,包括 4 次插入1 次删除
  1. 3 0
      CHANGES.txt
  2. 1 1
      src/test/org/apache/hadoop/hdfs/server/namenode/TestNodeCount.java

+ 3 - 0
CHANGES.txt

@@ -53,6 +53,9 @@ Release 0.20.3 - Unreleased
     HADOOP-6928. Fix BooleanWritable comparator in 0.20.
     (Owen O'Malley and Johannes Zillmann via Eli Collins)
 
+    HDFS-1404. TestNodeCount logic incorrect in branch-0.20.
+    (Todd Lipcon via Eli Collins)
+
   IMPROVEMENTS
 
     MAPREDUCE-1407. Update javadoc in mapreduce.{Mapper,Reducer} to match

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

@@ -99,7 +99,7 @@ public class TestNodeCount extends TestCase {
       // check if excessive replica is detected
       do {
        num = namesystem.countNodes(block);
-      } while (num.excessReplicas() == 2);
+      } while (num.excessReplicas() != 2);
     } finally {
       cluster.shutdown();
     }