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

Incorrect use of positional read api in HFileBlock

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.2.0, 0.98.15, 1.0.3, 1.1.3, 2.0.0
    • Component/s: io
    • Labels:
      None
    • Hadoop Flags:
      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.003.patch
          9 kB
          Chris Nauroth
        2. HBASE-14307.002.master.patch
          3 kB
          Chris Nauroth
        3. HBASE-14307.001.master.patch
          3 kB
          Chris Nauroth
        4. 14307-branch-1.addendum
          1.0 kB
          Ted Yu

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: