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

This commit is contained in:
Uma Maheswara Rao G 2015-05-08 11:01:51 +05:30
parent 66988476d0
commit 2ea0f2fc93
2 changed files with 3 additions and 1 deletions

View File

@ -656,6 +656,8 @@ Release 2.8.0 - UNRELEASED
HDFS-8067. haadmin prints out stale help messages (Ajith S via vinayakumarb) 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 Release 2.7.1 - UNRELEASED
INCOMPATIBLE CHANGES INCOMPATIBLE CHANGES

View File

@ -631,7 +631,7 @@ private void collectBlocksSummary(String parent, HdfsFileStatus file, Result res
missing++; missing++;
missize += block.getNumBytes(); missize += block.getNumBytes();
} else { } else {
report.append(" repl=" + liveReplicas); report.append(" Live_repl=" + liveReplicas);
if (showLocations || showRacks || showReplicaDetails) { if (showLocations || showRacks || showReplicaDetails) {
StringBuilder sb = new StringBuilder("["); StringBuilder sb = new StringBuilder("[");
Iterable<DatanodeStorageInfo> storages = bm.getStorages(block.getLocalBlock()); Iterable<DatanodeStorageInfo> storages = bm.getStorages(block.getLocalBlock());