ソースを参照

HDFS-6449. Incorrect counting in ContentSummaryComputationContext in 0.23. Contributed by Kihwal Lee.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.23@1597839 13f79535-47bb-0310-9956-ffa450edef68
Kihwal Lee 11 年 前
コミット
5c182ca1c1

+ 3 - 0
hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt

@@ -27,6 +27,9 @@ Release 0.23.11 - UNRELEASED
     HDFS-5728. Block recovery will fail if the metafile does not have crc 
     for all chunks of the block. (Vinayakumar B via kihwal)
 
+    HDFS-6449. Incorrect counting in ContentSummaryComputationContext in 0.23.
+    (kihwal)
+
 Release 0.23.10 - 2013-12-09
 
   INCOMPATIBLE CHANGES

+ 1 - 2
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/ContentSummaryComputationContext.java

@@ -72,8 +72,7 @@ public class ContentSummaryComputationContext {
     }
 
     // Have we reached the limit?
-    long currentCount = counts[0] + counts[1] + counts[2] +
-        counts[3];
+    long currentCount = counts[1] + counts[2];
     if (currentCount <= nextCountLimit) {
       return false;
     }