Przeglądaj źródła

HADOOP-1505. Remove spurious stacktrace in ZlibFactory introduced in HADOOP-1093. Contributed by Michael Stack.

git-svn-id: https://svn.apache.org/repos/asf/lucene/hadoop/trunk@549205 13f79535-47bb-0310-9956-ffa450edef68
Thomas White 18 lat temu
rodzic
commit
981a7c7075

+ 3 - 0
CHANGES.txt

@@ -185,6 +185,9 @@ Trunk (unreleased changes)
  57. HADOOP-1475.  Clear tasktracker's file cache before it
      re-initializes, to avoid confusion.  (omalley via cutting)
 
+ 58. HADOOP-1505.  Remove spurious stacktrace in ZlibFactory
+     introduced in HADOOP-1093.  (Michael Stack via tomwhite)
+
 
 Release 0.13.0 - 2007-06-08
 

+ 0 - 10
src/java/org/apache/hadoop/io/compress/zlib/ZlibFactory.java

@@ -77,11 +77,6 @@ public class ZlibFactory {
    */
   public static Compressor getZlibCompressor() {
     LOG.info("Creating a new ZlibCompressor");
-    try {
-      throw new Exception();
-    } catch (Exception e) {
-      e.printStackTrace();
-    }
     return (nativeZlibLoaded) ? 
       new ZlibCompressor() : new BuiltInZlibDeflater(); 
   }
@@ -103,11 +98,6 @@ public class ZlibFactory {
    */
   public static Decompressor getZlibDecompressor() {
     LOG.info("Creating a new ZlibDecompressor");
-    try {
-      throw new Exception();
-    } catch (Exception e) {
-      e.printStackTrace();
-    }
     return (nativeZlibLoaded) ? 
       new ZlibDecompressor() : new BuiltInZlibInflater(); 
   }