You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Amir Youssefi (JIRA)" <ji...@apache.org> on 2008/09/11 23:25:44 UTC

[jira] Commented: (HADOOP-4162) CodecPool.getDecompressor(LzopCodec) always creates a brand-new decompressor.

    [ https://issues.apache.org/jira/browse/HADOOP-4162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12630385#action_12630385 ] 

Amir Youssefi commented on HADOOP-4162:
---------------------------------------

Before patch:
2008-09-11 21:22:33,169 INFO  compress.CodecPool (CodecPool.java:getDecompressor(121)) - Got brand-new decompressor
2008-09-11 21:22:33,500 INFO  compress.CodecPool (CodecPool.java:getDecompressor(121)) - Got brand-new decompressor
2008-09-11 21:22:33,696 INFO  compress.CodecPool (CodecPool.java:getDecompressor(121)) - Got brand-new decompressor
2008-09-11 21:22:33,904 INFO  compress.CodecPool (CodecPool.java:getDecompressor(121)) - Got brand-new decompressor
2008-09-11 21:22:34,089 INFO  compress.CodecPool (CodecPool.java:getDecompressor(121)) - Got brand-new decompressor
2008-09-11 21:22:34,277 INFO  compress.CodecPool (CodecPool.java:getDecompressor(121)) - Got brand-new decompressor
2008-09-11 21:22:34,465 INFO  compress.CodecPool (CodecPool.java:getDecompressor(121)) - Got brand-new decompressor
2008-09-11 21:22:34,700 INFO  compress.CodecPool (CodecPool.java:getDecompressor(121)) - Got brand-new decompressor
2008-09-11 21:22:34,887 INFO  compress.CodecPool (CodecPool.java:getDecompressor(121)) - Got brand-new decompressor
2008-09-11 21:22:35,074 INFO  compress.CodecPool (CodecPool.java:getDecompressor(121)) - Got brand-new decompressor


After patch:

2008-09-11 21:20:21,454 INFO  compress.CodecPool (CodecPool.java:getDecompressor(121)) - Got brand-new decompressor 



> CodecPool.getDecompressor(LzopCodec) always creates a brand-new decompressor.
> -----------------------------------------------------------------------------
>
>                 Key: HADOOP-4162
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4162
>             Project: Hadoop Core
>          Issue Type: Bug
>    Affects Versions: 0.18.0
>            Reporter: Hong Tang
>            Assignee: Arun C Murthy
>             Fix For: 0.19.0
>
>         Attachments: HADOOP-4162_0_20080911.patch
>
>
> CodecPool.getDecompressor(LzopCodec) always creates a brand-new decompressor. I investigated the code, the reason seems to be the following:
> LzopCodec inherits from LzoCodec. The getDecompressorType() method is supposed to return the concrete Decompressor class type the specific Codec class creates. In this case, LzopCodec creates LzopDecompressors and should return LzopDecompressor.class. But instead, it uses the getDecompressorType() method defined in the parent and returns LzoDecompressor.class.
> This leads to CodecPool unable to properly recycle the decompressors.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.