Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-14307

Incorrect use of positional read api in HFileBlock

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.2.0, 0.98.15, 1.0.3, 1.1.3, 2.0.0
    • io
    • None
    • Reviewed

    Description

      Considering that read() is not guaranteed to read all bytes,
      I'm interested to understand this particular piece of code and why is partial read treated as an error :

      https://github.com/apache/hbase/blob/master/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/HFileBlock.java#L1446-L1450

      Particularly, if hbase were to use a different filesystem, say WebhdfsFileSystem, this would not work, please also see https://issues.apache.org/jira/browse/HDFS-8943 for discussion around this.

      Attachments

        1. HBASE-14307.001.master.patch
          3 kB
          Chris Nauroth
        2. HBASE-14307.002.master.patch
          3 kB
          Chris Nauroth
        3. HBASE-14307.003.patch
          9 kB
          Chris Nauroth
        4. 14307-branch-1.addendum
          1.0 kB
          Ted Yu

        Issue Links

          Activity

            People

              cnauroth Chris Nauroth
              srevanka Shradha Revankar
              Votes:
              0 Vote for this issue
              Watchers:
              13 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: