Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-8496 Implement tags and the internals of how a tag should look like
  3. HBASE-9596

HFileContext defaults can lead to inconsistency with expectations of HFile block header sizing between readers and writers

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      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.

        Attachments

        1. 9596.patch
          0.8 kB
          Andrew Purtell

          Activity

            People

            • Assignee:
              ram_krish ramkrishna.s.vasudevan
              Reporter:
              apurtell Andrew Purtell
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: