Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-3101

cannot read empty file using webhdfs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.23.1
    • 1.0.2, 0.23.2
    • webhdfs
    • None
    • Reviewed

    Description

      STEP:
      1, create a new EMPTY file
      2, read it using webhdfs.

      RESULT:
      expected: get a empty file
      I got: {"RemoteException":{"exception":"IOException","javaClassName":"java.io.IOException","message":"Offset=0 out of the range [0, 0); OPEN, path=/testFile"}}

      First of all, [0, 0) is not a valid range, and I think read a empty file should be OK.

      Attachments

        1. h3101_20120315_branch-1.patch
          2 kB
          Tsz-wo Sze
        2. h3101_20120315.patch
          2 kB
          Tsz-wo Sze

        Activity

          People

            szetszwo Tsz-wo Sze
            wangzw Zhanwei Wang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: