瀏覽代碼

HDFS-8174. Update replication count to live rep count in fsck report. Contributed by J.Andreina

(cherry picked from commit 2ea0f2fc938febd7fbbe03656a91ae3db1409c50)
Uma Maheswara Rao G 10 年之前
父節點
當前提交
7fe1d74005

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

@@ -332,6 +332,8 @@ Release 2.8.0 - UNRELEASED
 
     HDFS-8067. haadmin prints out stale help messages (Ajith S via vinayakumarb)
 
+    HDFS-8174. Update replication count to live rep count in fsck report. (J.Andreina)
+
 Release 2.7.1 - UNRELEASED
 
   INCOMPATIBLE CHANGES

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

@@ -620,7 +620,7 @@ public class NamenodeFsck implements DataEncryptionKeyFactory {
         missing++;
         missize += block.getNumBytes();
       } else {
-        report.append(" repl=" + liveReplicas);
+        report.append(" Live_repl=" + liveReplicas);
         if (showLocations || showRacks || showReplicaDetails) {
           StringBuilder sb = new StringBuilder("[");
           Iterable<DatanodeStorageInfo> storages = bm.getStorages(block.getLocalBlock());