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 String toString() {
|
||||
((float) (numUnderMinReplicatedBlocks * 100) / (float) totalBlocks))
|
||||
.append(" %)");
|
||||
}
|
||||
res.append("\n ").append(DFSConfigKeys.DFS_NAMENODE_REPLICATION_MIN_KEY + ":\t")
|
||||
res.append("\n ").append("MINIMAL BLOCK REPLICATION:\t")
|
||||
.append(minReplication);
|
||||
}
|
||||
if(corruptFiles>0) {
|
||||
|
@ -902,7 +902,7 @@ public void testUnderMinReplicatedBlock() throws Exception {
|
||||
System.out.println(outStr);
|
||||
assertTrue(outStr.contains(NamenodeFsck.HEALTHY_STATUS));
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user