hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Percy (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HADOOP-8522) ResetableGzipOutputStream creates invalid gzip files when finish() and resetState() are used
Date Fri, 05 Aug 2016 23:26:20 GMT

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

Mike Percy updated HADOOP-8522:
-------------------------------
    Attachment: HADOOP-8522-3.patch

A long time ago, in a galaxy far, far away I wrote this Hadoop patch.

I finally went back, rebased it against trunk, and made the test better.

Think we can commit this?

> ResetableGzipOutputStream creates invalid gzip files when finish() and resetState() are
used
> --------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-8522
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8522
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: io
>    Affects Versions: 1.0.3, 2.0.0-alpha
>            Reporter: Mike Percy
>            Assignee: Mike Percy
>              Labels: BB2015-05-TBR
>         Attachments: HADOOP-8522-2a.patch, HADOOP-8522-3.patch
>
>
> ResetableGzipOutputStream creates invalid gzip files when finish() and resetState() are
used. The issue is that finish() flushes the compressor buffer and writes the gzip CRC32 +
data length trailer. After that, resetState() does not repeat the gzip header, but simply
starts writing more deflate-compressed data. The resultant files are not readable by the Linux
"gunzip" tool. ResetableGzipOutputStream should write valid multi-member gzip files.
> The gzip format is specified in [RFC 1952|https://tools.ietf.org/html/rfc1952].



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Mime
View raw message