[
https://issues.apache.org/jira/browse/HADOOP-8522?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chris Douglas updated HADOOP-8522:
----------------------------------
Attachment: HADOOP-8522.07.patch
Fixed checkstyle issues, ran test-patch locally:
{noformat}
| Vote | Subsystem | Runtime | Comment
============================================================================
| +1 | @author | 0m 0s | The patch does not contain any @author
| | | | tags.
| +1 | test4tests | 0m 0s | The patch appears to include 1 new or
| | | | modified test files.
| +1 | mvninstall | 12m 54s | trunk passed
| +1 | compile | 10m 37s | trunk passed
| +1 | checkstyle | 0m 28s | trunk passed
| +1 | mvnsite | 0m 48s | trunk passed
| +1 | mvneclipse | 0m 18s | trunk passed
| +1 | findbugs | 1m 6s | trunk passed
| +1 | javadoc | 0m 51s | trunk passed
| +1 | mvninstall | 0m 34s | the patch passed
| +1 | compile | 10m 4s | the patch passed
| +1 | javac | 10m 4s | the patch passed
| +1 | checkstyle | 0m 34s | the patch passed
| +1 | mvnsite | 0m 53s | the patch passed
| +1 | mvneclipse | 0m 24s | the patch passed
| +1 | whitespace | 0m 0s | The patch has no whitespace issues.
| +1 | findbugs | 1m 15s | the patch passed
| +1 | javadoc | 0m 51s | the patch passed
| +1 | asflicense | 0m 32s | The patch does not generate ASF License
| | | | warnings.
| | | 43m 22s |
{noformat}
> 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-4.patch, HADOOP-8522.05.patch,
> HADOOP-8522.06.patch, HADOOP-8522.07.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.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]