hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e..@apache.org
Subject svn commit: r1080797 - in /hadoop/common/trunk: CHANGES.txt src/java/org/apache/hadoop/io/compress/CodecPool.java
Date Fri, 11 Mar 2011 23:40:28 GMT
Author: eli
Date: Fri Mar 11 23:40:28 2011
New Revision: 1080797

URL: http://svn.apache.org/viewvc?rev=1080797&view=rev
Log:
HADOOP-7177. CodecPool should report which compressor it is using. Contributed by Allen Wittenauer

Modified:
    hadoop/common/trunk/CHANGES.txt
    hadoop/common/trunk/src/java/org/apache/hadoop/io/compress/CodecPool.java

Modified: hadoop/common/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/CHANGES.txt?rev=1080797&r1=1080796&r2=1080797&view=diff
==============================================================================
--- hadoop/common/trunk/CHANGES.txt (original)
+++ hadoop/common/trunk/CHANGES.txt Fri Mar 11 23:40:28 2011
@@ -548,6 +548,9 @@ Release 0.21.1 - Unreleased
 
     HADOOP-6786. test-patch needs to verify Herriot integrity (cos)
 
+    HADOOP-7177. CodecPool should report which compressor it is using.
+    (Allen Wittenauer via eli)
+
   BUG FIXES
 
     HADOOP-6925. BZip2Codec incorrectly implements read(). 

Modified: hadoop/common/trunk/src/java/org/apache/hadoop/io/compress/CodecPool.java
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/src/java/org/apache/hadoop/io/compress/CodecPool.java?rev=1080797&r1=1080796&r2=1080797&view=diff
==============================================================================
--- hadoop/common/trunk/src/java/org/apache/hadoop/io/compress/CodecPool.java (original)
+++ hadoop/common/trunk/src/java/org/apache/hadoop/io/compress/CodecPool.java Fri Mar 11 23:40:28
2011
@@ -104,7 +104,7 @@ public class CodecPool {
     Compressor compressor = borrow(compressorPool, codec.getCompressorType());
     if (compressor == null) {
       compressor = codec.createCompressor();
-      LOG.info("Got brand-new compressor");
+      LOG.info("Got brand-new compressor ["+codec.getDefaultExtension()+"]");
     } else {
       compressor.reinit(conf);
       if(LOG.isDebugEnabled()) {
@@ -131,7 +131,7 @@ public class CodecPool {
     Decompressor decompressor = borrow(decompressorPool, codec.getDecompressorType());
     if (decompressor == null) {
       decompressor = codec.createDecompressor();
-      LOG.info("Got brand-new decompressor");
+      LOG.info("Got brand-new decompressor ["+codec.getDefaultExtension()+"]");
     } else {
       if(LOG.isDebugEnabled()) {
         LOG.debug("Got recycled decompressor");



Mime
View raw message