Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-8707 Implement an async pure c++ HDFS client
  3. HDFS-12013

libhdfs++: read with offset at EOF should return 0 bytes instead of error

    XMLWordPrintableJSON

    Details

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

      Description

      The current behavior is when you read from offset == file_length, it will throw error:

      "AsyncPreadSome: trying to begin a read past the EOF"

      But read with offset at EOF should just return 0 bytes. The above error should only be thrown when offset > file_length.

        Attachments

        1. HDFS-12013.HDFS-8707.000.patch
          0.8 kB
          Xiaowei Zhu

          Activity

            People

            • Assignee:
              xiaowei.zhu Xiaowei Zhu
              Reporter:
              xiaowei.zhu Xiaowei Zhu
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: