HBASE-7435 BuiltInGzipDecompressor is only released during full GC
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1425757 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
fb5883bea6
commit
5640731663
|
@ -36,6 +36,7 @@ import org.apache.hadoop.io.compress.CompressionOutputStream;
|
|||
import org.apache.hadoop.io.compress.Compressor;
|
||||
import org.apache.hadoop.io.compress.Decompressor;
|
||||
import org.apache.hadoop.io.compress.DefaultCodec;
|
||||
import org.apache.hadoop.io.compress.DoNotPool;
|
||||
import org.apache.hadoop.io.compress.GzipCodec;
|
||||
import org.apache.hadoop.util.ReflectionUtils;
|
||||
|
||||
|
@ -309,6 +310,9 @@ public final class Compression {
|
|||
public void returnDecompressor(Decompressor decompressor) {
|
||||
if (decompressor != null) {
|
||||
CodecPool.returnDecompressor(decompressor);
|
||||
if (decompressor.getClass().isAnnotationPresent(DoNotPool.class)) {
|
||||
decompressor.end();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue