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

WebHDFS Open used with Offset returns the original (and incorrect) Content Length in the HTTP Header.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.23.3, 2.0.0-alpha, 1-win, 1.3.0
    • 0.23.3, 2.0.2-alpha
    • webhdfs
    • None

    Description

      When an offset is specified, the HTTP header Content Length still contains the original file size. e.g. if the original file is 100 bytes, and the offset specified it 10, then HTTP Content Length ought to be 90. Currently it is still returned as 100.
      This causes curl to give error 18, and JAVA to throw ConnectionClosedException

      Attachments

        1. HDFS-3794.patch
          1.0 kB
          Ravi Prakash
        2. HDFS-3794.patch
          0.9 kB
          Ravi Prakash
        3. HDFS-3794_branch-1.patch
          0.7 kB
          Tsz-wo Sze

        Activity

          People

            raviprak Ravi Prakash
            raviprak Ravi Prakash
            Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: