HDFS-9331. Modify TestNameNodeMXBean#testNameNodeMXBeanInfo() to account for filesystem entirely allocated for DFS use. (Tony Wu via lei)

(cherry picked from commit e2a5441b06)
This commit is contained in:
Lei Xu 2015-11-04 10:27:35 -08:00
parent 6d92778191
commit 8ed1fd2171
2 changed files with 4 additions and 1 deletions

View File

@ -773,6 +773,9 @@ Release 2.8.0 - UNRELEASED
HDFS-9007. Fix HDFS Balancer to honor upgrade domain policy. (Ming Ma via lei)
HDFS-9331. Modify TestNameNodeMXBean#testNameNodeMXBeanInfo() to account for
filesystem entirely allocated for DFS use. (Tony Wu via lei)
OPTIMIZATIONS
HDFS-8026. Trace FSOutputSummer#writeChecksumChunks rather than

View File

@ -136,7 +136,7 @@ public class TestNameNodeMXBean {
assertTrue(liveNodes.size() == 2);
for (Map<String, Object> liveNode : liveNodes.values()) {
assertTrue(liveNode.containsKey("nonDfsUsedSpace"));
assertTrue(((Long)liveNode.get("nonDfsUsedSpace")) > 0);
assertTrue(((Long)liveNode.get("nonDfsUsedSpace")) >= 0);
assertTrue(liveNode.containsKey("capacity"));
assertTrue(((Long)liveNode.get("capacity")) > 0);
assertTrue(liveNode.containsKey("numBlocks"));