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

cannot read empty file using webhdfs

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.23.1
    • Fix Version/s: 1.0.2, 0.23.2
    • Component/s: webhdfs
    • Labels:
      None
    • Hadoop Flags:
      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.patch
          2 kB
          Tsz Wo Nicholas Sze
        2. h3101_20120315_branch-1.patch
          2 kB
          Tsz Wo Nicholas Sze

          Activity

            People

            • Assignee:
              szetszwo Tsz Wo Nicholas Sze
              Reporter:
              wangzw Zhanwei Wang
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: