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

    • Sub-task
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • None
    • hdfs-client
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: