You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by st...@apache.org on 2016/01/09 12:17:36 UTC

hadoop git commit: HADOOP-12590. TestCompressorDecompressor failing without stack traces (John Zhuge via stevel)

Repository: hadoop
Updated Branches:
  refs/heads/branch-2 debd13387 -> 80734bc34


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/80734bc3
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/80734bc3
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/80734bc3

Branch: refs/heads/branch-2
Commit: 80734bc346e8d339a2427b4f691365298acf062c
Parents: debd133
Author: Steve Loughran <st...@apache.org>
Authored: Sat Jan 9 11:10:20 2016 +0000
Committer: Steve Loughran <st...@apache.org>
Committed: Sat Jan 9 11:10:20 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/80734bc3/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 28077b2..41497a2 100644
--- a/hadoop-common-project/hadoop-common/CHANGES.txt
+++ b/hadoop-common-project/hadoop-common/CHANGES.txt
@@ -33,6 +33,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/80734bc3/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);
     }
   }