hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject [2/2] hadoop git commit: HADOOP-12590. TestCompressorDecompressor failing without stack traces (John Zhuge via stevel)
Date Sat, 09 Jan 2016 11:17:27 GMT
HADOOP-12590. TestCompressorDecompressor failing without stack traces  (John Zhuge via stevel)


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

Branch: refs/heads/trunk
Commit: d7ed04758c1bdb1c7caf5cf3a03da3ad81701957
Parents: 84bf512
Author: Steve Loughran <stevel@apache.org>
Authored: Sat Jan 9 11:10:20 2016 +0000
Committer: Steve Loughran <stevel@apache.org>
Committed: Sat Jan 9 11:15:07 2016 +0000

----------------------------------------------------------------------
 hadoop-common-project/hadoop-common/CHANGES.txt               | 3 +++
 .../apache/hadoop/io/compress/TestCompressorDecompressor.java | 7 +++++--
 2 files changed, 8 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/d7ed0475/hadoop-common-project/hadoop-common/CHANGES.txt
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt
index 1c86e9b..0bc8ae5 100644
--- a/hadoop-common-project/hadoop-common/CHANGES.txt
+++ b/hadoop-common-project/hadoop-common/CHANGES.txt
@@ -674,6 +674,9 @@ Release 2.9.0 - UNRELEASED
    HADOOP-12573. TestRPC.testClientBackOff failing.
    (Xiao Chen via stevel)
 
+   HADOOP-12590. TestCompressorDecompressor failing without stack traces
+   (John Zhuge via stevel)
+
 Release 2.8.0 - UNRELEASED
 
   INCOMPATIBLE CHANGES

http://git-wip-us.apache.org/repos/asf/hadoop/blob/d7ed0475/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/io/compress/TestCompressorDecompressor.java
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/io/compress/TestCompressorDecompressor.java
b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/io/compress/TestCompressorDecompressor.java
index a8ac993..49a41fb 100644
--- a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/io/compress/TestCompressorDecompressor.java
+++ b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/io/compress/TestCompressorDecompressor.java
@@ -26,6 +26,7 @@ import org.apache.hadoop.io.compress.snappy.SnappyCompressor;
 import org.apache.hadoop.io.compress.snappy.SnappyDecompressor;
 import org.apache.hadoop.io.compress.zlib.BuiltInZlibDeflater;
 import org.apache.hadoop.io.compress.zlib.BuiltInZlibInflater;
+import org.apache.hadoop.test.GenericTestUtils;
 import org.junit.Test;
 import com.google.common.collect.ImmutableSet;
 
@@ -66,7 +67,8 @@ public class TestCompressorDecompressor {
           .test();
 
     } catch (Exception ex) {
-      fail("testCompressorDecompressor error !!!" + ex);
+      GenericTestUtils.assertExceptionContains(
+          "testCompressorDecompressor error !!!", ex);
     }
   }
   
@@ -88,7 +90,8 @@ public class TestCompressorDecompressor {
           .test();
 
     } catch (Exception ex) {
-      fail("testCompressorDecompressorWithExeedBufferLimit error !!!" + ex);
+      GenericTestUtils.assertExceptionContains(
+          "testCompressorDecompressorWithExeedBufferLimit error !!!", ex);
     }
   }
        


Mime
View raw message