HADOOP-7177. CodecPool should report which compressor it is using. Contributed by Allen Wittenauer
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1080797 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
05704fe46e
commit
fbc110758b
@ -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().
|
||||
|
@ -104,7 +104,7 @@ public static Compressor getCompressor(CompressionCodec codec, Configuration con
|
||||
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 static Decompressor getDecompressor(CompressionCodec codec) {
|
||||
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");
|
||||
|
Loading…
Reference in New Issue
Block a user