You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Andrew Purtell (JIRA)" <ji...@apache.org> on 2015/04/22 02:47:00 UTC
[jira] [Resolved] (HBASE-5881) BuiltIn Gzip compressor &
decompressor not getting pooled, leading to native memory leak
[ https://issues.apache.org/jira/browse/HBASE-5881?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Purtell resolved HBASE-5881.
-----------------------------------
Resolution: Not A Problem
Assignee: (was: ramkrishna.s.vasudevan)
> BuiltIn Gzip compressor & decompressor not getting pooled, leading to native memory leak
> ----------------------------------------------------------------------------------------
>
> Key: HBASE-5881
> URL: https://issues.apache.org/jira/browse/HBASE-5881
> Project: HBase
> Issue Type: Bug
> Components: io
> Affects Versions: 0.92.1
> Reporter: Gopinathan A
> Priority: Critical
>
> This issue will occur only in hadoop 23.x & above/
> In hadoop 0.20.x
> {code}
> public static void returnDecompressor(Decompressor decompressor) {
> if (decompressor == null) {
> return;
> }
> decompressor.reset();
> payback(decompressorPool, decompressor);
> }
> {code}
> In hadoop 0.23.x
> {code}
> public static void returnDecompressor(Decompressor decompressor) {
> if (decompressor == null) {
> return;
> }
> // if the decompressor can't be reused, don't pool it.
> if (decompressor.getClass().isAnnotationPresent(DoNotPool.class)) {
> return;
> }
> decompressor.reset();
> payback(decompressorPool, decompressor);
> }
> {code}
> Here annotation has been added. By default this library will be loaded if there are no native library.
> {code}
> @DoNotPool
> public class BuiltInGzipDecompressor
> {code}
> Due to this each time new compressor/decompressor will be loaded, this leads to native memory leak.
> {noformat}
> 2012-04-25 22:11:48,093 INFO org.apache.hadoop.io.compress.CodecPool: Got brand-new decompressor [.gz]
> 2012-04-25 22:11:48,093 INFO org.apache.hadoop.io.compress.CodecPool: Got brand-new decompressor [.gz]
> 2012-04-25 22:11:48,093 INFO org.apache.hadoop.io.compress.CodecPool: Got brand-new decompressor [.gz]
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)