hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From iwasak...@apache.org
Subject hadoop git commit: HDFS-2043. TestHFlush failing intermittently. Contributed by Lin Yiqun.
Date Fri, 06 May 2016 06:57:53 GMT
Repository: hadoop
Updated Branches:
  refs/heads/branch-2.7 9f51a3f43 -> dd8aba3fa


HDFS-2043. TestHFlush failing intermittently. Contributed by Lin Yiqun.


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

Branch: refs/heads/branch-2.7
Commit: dd8aba3fadcd61990bfe8cd44475daec8d7dc714
Parents: 9f51a3f
Author: Masatake Iwasaki <iwasakims@apache.org>
Authored: Fri May 6 15:57:06 2016 +0900
Committer: Masatake Iwasaki <iwasakims@apache.org>
Committed: Fri May 6 15:57:06 2016 +0900

----------------------------------------------------------------------
 hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt               |  2 ++
 .../src/test/java/org/apache/hadoop/hdfs/TestHFlush.java  | 10 ++++++++--
 2 files changed, 10 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/dd8aba3f/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 da1a4bc..64fb5c2 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
+++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
@@ -170,6 +170,8 @@ Release 2.7.3 - UNRELEASED
     HDFS-10347. Namenode report bad block method doesn't log the bad block or
     datanode. (Rushabh Shah via kihwal)
 
+    HDFS-2043. TestHFlush failing intermittently. (Lin Yiqun via iwasakims)
+
 Release 2.7.2 - 2016-01-25
 
   INCOMPATIBLE CHANGES

http://git-wip-us.apache.org/repos/asf/hadoop/blob/dd8aba3f/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestHFlush.java
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestHFlush.java
b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestHFlush.java
index a33ad18..99b81e2 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestHFlush.java
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestHFlush.java
@@ -484,8 +484,14 @@ public class TestHFlush {
         // If we got the exception, we shouldn't have interrupted status anymore.
         assertFalse(Thread.interrupted());
 
-        // Now do a successful close.
-        stm.close();
+        // Do the try-catch in the second stm.close() avoid that streamer was already
+        // closed in other places.
+        try {
+          // Now do a successful close.
+          stm.close();
+        } catch (IOException e) {
+          System.out.println("Got expected exception during second close");
+        }
       }
 
 


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message