HDFS-12825. Fsck report shows config key name for min replication issues (Contributed by Gabor Bota).
This commit is contained in:
parent
f19638333b
commit
ef7d334d36
|
@ -1236,7 +1236,7 @@ public class NamenodeFsck implements DataEncryptionKeyFactory {
|
||||||
((float) (numUnderMinReplicatedBlocks * 100) / (float) totalBlocks))
|
((float) (numUnderMinReplicatedBlocks * 100) / (float) totalBlocks))
|
||||||
.append(" %)");
|
.append(" %)");
|
||||||
}
|
}
|
||||||
res.append("\n ").append(DFSConfigKeys.DFS_NAMENODE_REPLICATION_MIN_KEY + ":\t")
|
res.append("\n ").append("MINIMAL BLOCK REPLICATION:\t")
|
||||||
.append(minReplication);
|
.append(minReplication);
|
||||||
}
|
}
|
||||||
if(corruptFiles>0) {
|
if(corruptFiles>0) {
|
||||||
|
|
|
@ -902,7 +902,7 @@ public class TestFsck {
|
||||||
System.out.println(outStr);
|
System.out.println(outStr);
|
||||||
assertTrue(outStr.contains(NamenodeFsck.HEALTHY_STATUS));
|
assertTrue(outStr.contains(NamenodeFsck.HEALTHY_STATUS));
|
||||||
assertTrue(outStr.contains("UNDER MIN REPL'D BLOCKS:\t1 (100.0 %)"));
|
assertTrue(outStr.contains("UNDER MIN REPL'D BLOCKS:\t1 (100.0 %)"));
|
||||||
assertTrue(outStr.contains("dfs.namenode.replication.min:\t2"));
|
assertTrue(outStr.contains("MINIMAL BLOCK REPLICATION:\t2"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 90000)
|
@Test(timeout = 90000)
|
||||||
|
|
Loading…
Reference in New Issue