diff --git a/CHANGES.txt b/CHANGES.txt index cd189984eec..3429eeb5fbb 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -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(). diff --git a/src/java/org/apache/hadoop/io/compress/CodecPool.java b/src/java/org/apache/hadoop/io/compress/CodecPool.java index bf1eec54bac..d878f62ebf7 100644 --- a/src/java/org/apache/hadoop/io/compress/CodecPool.java +++ b/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); 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");