hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kih...@apache.org
Subject git commit: HDFS-6754. TestNamenodeCapacityReport.testXceiverCount may sometimes fail due to lack of retry. Contributed by Mit Desai.
Date Wed, 01 Oct 2014 14:53:48 GMT
Repository: hadoop
Updated Branches:
  refs/heads/trunk 17d1202c3 -> 3f25d916d


HDFS-6754. TestNamenodeCapacityReport.testXceiverCount may sometimes fail due to lack of retry.
Contributed by Mit Desai.


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

Branch: refs/heads/trunk
Commit: 3f25d916d5539917092e2f52a8c2df2cfd647c3c
Parents: 17d1202
Author: Kihwal Lee <kihwal@actfamous-lm.champ.corp.yahoo.com>
Authored: Wed Oct 1 09:53:01 2014 -0500
Committer: Kihwal Lee <kihwal@actfamous-lm.champ.corp.yahoo.com>
Committed: Wed Oct 1 09:53:01 2014 -0500

----------------------------------------------------------------------
 hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt                      | 3 +++
 .../hadoop/hdfs/server/namenode/TestNamenodeCapacityReport.java  | 4 ++--
 2 files changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/3f25d916/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 393bb00..4438d35 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
+++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
@@ -780,6 +780,9 @@ Release 2.6.0 - UNRELEASED
 
     HDFS-4227. Document dfs.namenode.resource.*  (Daisuke Kobayashi via aw)
 
+    HDFS-6754. TestNamenodeCapacityReport may sometimes fail due to lack of
+    retry. (Mit Desai via kihwal)
+
     BREAKDOWN OF HDFS-6134 AND HADOOP-10150 SUBTASKS AND RELATED JIRAS
   
       HDFS-6387. HDFS CLI admin tool for creating & deleting an

http://git-wip-us.apache.org/repos/asf/hadoop/blob/3f25d916/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestNamenodeCapacityReport.java
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestNamenodeCapacityReport.java
b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestNamenodeCapacityReport.java
index 48a4b3c..15cad04 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestNamenodeCapacityReport.java
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestNamenodeCapacityReport.java
@@ -169,8 +169,8 @@ public class TestNamenodeCapacityReport {
   @Test
   public void testXceiverCount() throws Exception {
     Configuration conf = new HdfsConfiguration();
-    // don't waste time retrying if close fails
-    conf.setInt(DFS_CLIENT_BLOCK_WRITE_LOCATEFOLLOWINGBLOCK_RETRIES_KEY, 0);
+    // retry one time, if close fails
+    conf.setInt(DFS_CLIENT_BLOCK_WRITE_LOCATEFOLLOWINGBLOCK_RETRIES_KEY, 1);
     MiniDFSCluster cluster = null;
 
     final int nodes = 8;


Mime
View raw message