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:
parent
dce2381dc4
commit
7fe1d74005
|
@ -332,6 +332,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
|
||||||
|
|
|
@ -620,7 +620,7 @@ public class NamenodeFsck implements DataEncryptionKeyFactory {
|
||||||
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());
|
||||||
|
|
Loading…
Reference in New Issue