From 2ea0f2fc938febd7fbbe03656a91ae3db1409c50 Mon Sep 17 00:00:00 2001 From: Uma Maheswara Rao G Date: Fri, 8 May 2015 11:01:51 +0530 Subject: [PATCH] HDFS-8174. Update replication count to live rep count in fsck report. Contributed by J.Andreina --- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 2 ++ .../org/apache/hadoop/hdfs/server/namenode/NamenodeFsck.java | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index b9443b4edc..916e327e89 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -656,6 +656,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 diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NamenodeFsck.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NamenodeFsck.java index ac77394857..11e89c9abe 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NamenodeFsck.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NamenodeFsck.java @@ -631,7 +631,7 @@ private void collectBlocksSummary(String parent, HdfsFileStatus file, Result res missing++; missize += block.getNumBytes(); } else { - report.append(" repl=" + liveReplicas); + report.append(" Live_repl=" + liveReplicas); if (showLocations || showRacks || showReplicaDetails) { StringBuilder sb = new StringBuilder("["); Iterable storages = bm.getStorages(block.getLocalBlock());