hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aajis...@apache.org
Subject hadoop git commit: HDFS-10449. TestRollingFileSystemSinkWithHdfs#testFailedClose() fails on branch-2. Contributed by Takanobu Asanuma.
Date Thu, 02 Jun 2016 18:09:58 GMT
Repository: hadoop
Updated Branches:
  refs/heads/branch-2 384a84828 -> cbf6cacf6


HDFS-10449. TestRollingFileSystemSinkWithHdfs#testFailedClose() fails on branch-2. Contributed
by Takanobu Asanuma.


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

Branch: refs/heads/branch-2
Commit: cbf6cacf64519d389713de7fb873caf93cee7481
Parents: 384a848
Author: Akira Ajisaka <aajisaka@apache.org>
Authored: Fri Jun 3 03:08:22 2016 +0900
Committer: Akira Ajisaka <aajisaka@apache.org>
Committed: Fri Jun 3 03:08:22 2016 +0900

----------------------------------------------------------------------
 .../hadoop/metrics2/sink/TestRollingFileSystemSinkWithHdfs.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/cbf6cacf/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/metrics2/sink/TestRollingFileSystemSinkWithHdfs.java
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/metrics2/sink/TestRollingFileSystemSinkWithHdfs.java
b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/metrics2/sink/TestRollingFileSystemSinkWithHdfs.java
index f835b3f..2a76604 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/metrics2/sink/TestRollingFileSystemSinkWithHdfs.java
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/metrics2/sink/TestRollingFileSystemSinkWithHdfs.java
@@ -187,8 +187,8 @@ public class TestRollingFileSystemSinkWithHdfs
     try {
       ms.stop();
 
-      fail("No exception was generated while stopping sink "
-          + "even though HDFS was unavailable");
+      assertTrue("No exception was generated while stopping sink "
+          + "even though HDFS was unavailable", MockSink.errored);
     } catch (MetricsException ex) {
       // Expected
     } finally {


---------------------------------------------------------------------
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