You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Andrew Purtell (JIRA)" <ji...@apache.org> on 2013/09/20 19:15:55 UTC

[jira] [Updated] (HBASE-9596) HFileContext defaults can lead to inconsistency with expectations of HFile block header sizing between readers and writers

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

Andrew Purtell updated HBASE-9596:
----------------------------------

    Attachment: 9596.patch

Attached trivial patch
                
> HFileContext defaults can lead to inconsistency with expectations of HFile block header sizing between readers and writers
> --------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HBASE-9596
>                 URL: https://issues.apache.org/jira/browse/HBASE-9596
>             Project: HBase
>          Issue Type: Sub-task
>            Reporter: Andrew Purtell
>            Assignee: ramkrishna.s.vasudevan
>            Priority: Minor
>         Attachments: 9596.patch
>
>
> HFileContext defaults can lead to inconsistency with expectations of HFile block header sizing between readers and writers. In HConstants the default block header is now the one including checksum, but by default HFileContext has useHBaseChecksum set to false. If creating readers and writers directly rather than going through HFile, you can end up with a writer producing block headers including the checksum and a reader expecting headers without, leading to sad results. Minor issue but worth looking at to avoid surprises.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira