[
https://issues.apache.org/jira/browse/HADOOP-9622?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13824444#comment-13824444
]
Chris Douglas commented on HADOOP-9622:
---------------------------------------
+1 The unit test clearly demonstrates the bug and dropping records is severe
enough that this case should be fixed.
The comment is helpful, thanks for including it. {{inDelimiter}} is
insufficient because {{LineReader::readDefaultLine}} will match \n, while
{{LineReader::readCustomLine}} would consider a partial match incomplete and
require an extra line? I looked briefly at the custom delimiter code, and I'm
not seeing how it handles splits that start in the middle of a delimiter. I
must be missing something obvious...
> bzip2 codec can drop records when reading data in splits
> --------------------------------------------------------
>
> Key: HADOOP-9622
> URL: https://issues.apache.org/jira/browse/HADOOP-9622
> Project: Hadoop Common
> Issue Type: Bug
> Components: io
> Affects Versions: 2.0.4-alpha, 0.23.8
> Reporter: Jason Lowe
> Assignee: Jason Lowe
> Priority: Critical
> Attachments: HADOOP-9622-2.patch, HADOOP-9622-testcase.patch,
> HADOOP-9622.patch, blockEndingInCR.txt.bz2, blockEndingInCRThenLF.txt.bz2
>
>
> Bzip2Codec.BZip2CompressionInputStream can cause records to be dropped when
> reading them in splits based on where record delimiters occur relative to
> compression block boundaries.
> Thanks to [~knoguchi] for discovering this problem while working on PIG-3251.
--
This message was sent by Atlassian JIRA
(v6.1#6144)