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-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
|
BUG FIXES
|
||||||
|
|
||||||
HADOOP-6925. BZip2Codec incorrectly implements read().
|
HADOOP-6925. BZip2Codec incorrectly implements read().
|
||||||
|
@ -104,7 +104,7 @@ public static Compressor getCompressor(CompressionCodec codec, Configuration con
|
|||||||
Compressor compressor = borrow(compressorPool, codec.getCompressorType());
|
Compressor compressor = borrow(compressorPool, codec.getCompressorType());
|
||||||
if (compressor == null) {
|
if (compressor == null) {
|
||||||
compressor = codec.createCompressor();
|
compressor = codec.createCompressor();
|
||||||
LOG.info("Got brand-new compressor");
|
LOG.info("Got brand-new compressor ["+codec.getDefaultExtension()+"]");
|
||||||
} else {
|
} else {
|
||||||
compressor.reinit(conf);
|
compressor.reinit(conf);
|
||||||
if(LOG.isDebugEnabled()) {
|
if(LOG.isDebugEnabled()) {
|
||||||
@ -131,7 +131,7 @@ public static Decompressor getDecompressor(CompressionCodec codec) {
|
|||||||
Decompressor decompressor = borrow(decompressorPool, codec.getDecompressorType());
|
Decompressor decompressor = borrow(decompressorPool, codec.getDecompressorType());
|
||||||
if (decompressor == null) {
|
if (decompressor == null) {
|
||||||
decompressor = codec.createDecompressor();
|
decompressor = codec.createDecompressor();
|
||||||
LOG.info("Got brand-new decompressor");
|
LOG.info("Got brand-new decompressor ["+codec.getDefaultExtension()+"]");
|
||||||
} else {
|
} else {
|
||||||
if(LOG.isDebugEnabled()) {
|
if(LOG.isDebugEnabled()) {
|
||||||
LOG.debug("Got recycled decompressor");
|
LOG.debug("Got recycled decompressor");
|
||||||
|
Loading…
Reference in New Issue
Block a user