Browse Source

HADOOP-7177. svn merge -c 1080797 from trunk

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.21@1080800 13f79535-47bb-0310-9956-ffa450edef68
Eli Collins 14 years ago
parent
commit
317f6d6362
2 changed files with 5 additions and 2 deletions
  1. 3 0
      CHANGES.txt
  2. 2 2
      src/java/org/apache/hadoop/io/compress/CodecPool.java

+ 3 - 0
CHANGES.txt

@@ -9,6 +9,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(). 

+ 2 - 2
src/java/org/apache/hadoop/io/compress/CodecPool.java

@@ -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);
       LOG.debug("Got recycled compressor");
@@ -129,7 +129,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 {
       LOG.debug("Got recycled decompressor");
     }