You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Aaron Kimball (JIRA)" <ji...@apache.org> on 2009/10/15 23:35:31 UTC

[jira] Updated: (HADOOP-6315) GzipCodec should not represent BuiltInZlibInflater as decompressorType

     [ https://issues.apache.org/jira/browse/HADOOP-6315?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aaron Kimball updated HADOOP-6315:
----------------------------------

    Attachment: HADOOP-6315.patch

GzipCodec does not use BuiltInZlibInflater as its decompressor; createDecompressor() returns null. But getDecompressorType() returns BuiltInZlibInflater as its inflater type, which causes CodecPool to use BuiltInZlibInflater for GzipCodec.getDecompressor(). This inflater does not work on .gz files.

This patch fixes the bug. Also includes two test cases that demonstrate the problem.

> GzipCodec should not represent BuiltInZlibInflater as decompressorType
> ----------------------------------------------------------------------
>
>                 Key: HADOOP-6315
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6315
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: io
>            Reporter: Aaron Kimball
>            Assignee: Aaron Kimball
>         Attachments: HADOOP-6315.patch
>
>
> It is possible to pollute CodecPool in such a way that Hadoop cannot read gzip-compressed data.

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