hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l..@apache.org
Subject hadoop git commit: HDFS-9331. Modify TestNameNodeMXBean#testNameNodeMXBeanInfo() to account for filesystem entirely allocated for DFS use. (Tony Wu via lei)
Date Wed, 04 Nov 2015 18:28:09 GMT
Repository: hadoop
Updated Branches:
  refs/heads/branch-2 6d9277819 -> 8ed1fd217


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

(cherry picked from commit e2a5441b062fd0758138079d24a2740fc5e5e350)


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/8ed1fd21
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/8ed1fd21
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/8ed1fd21

Branch: refs/heads/branch-2
Commit: 8ed1fd2171269c1bf7efac417f84484f61dd2c5b
Parents: 6d92778
Author: Lei Xu <lei@apache.org>
Authored: Wed Nov 4 10:27:35 2015 -0800
Committer: Lei Xu <lei@apache.org>
Committed: Wed Nov 4 10:28:00 2015 -0800

----------------------------------------------------------------------
 hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt                       | 3 +++
 .../apache/hadoop/hdfs/server/namenode/TestNameNodeMXBean.java    | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/8ed1fd21/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
index db9cc29..6aa9432 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
+++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
@@ -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

http://git-wip-us.apache.org/repos/asf/hadoop/blob/8ed1fd21/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestNameNodeMXBean.java
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestNameNodeMXBean.java
b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestNameNodeMXBean.java
index 463ca67..dfaf929 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestNameNodeMXBean.java
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestNameNodeMXBean.java
@@ -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"));


Mime
View raw message