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

(cherry picked from commit 2ea0f2fc93)
This commit is contained in:
Uma Maheswara Rao G 2015-05-08 11:01:51 +05:30
parent dce2381dc4
commit 7fe1d74005
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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());