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

Add an api to get the visible length of a DFSDataInputStream.

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.21.0
    • Component/s: hdfs-client
    • Labels:
      None
    • Hadoop Flags:
      Reviewed
    • Release Note:
      Add an api to get the visible length of a DFSDataInputStream.

      Description

      Hflush guarantees that the bytes written before are visible to the new readers. However, there is no way to get the length of the visible bytes. The visible length is useful in some applications like SequenceFile.

        Attachments

        1. getLength-yahoo-0.20.patch
          3 kB
          Hairong Kuang
        2. h814_20091221_0.21.patch
          3 kB
          Tsz-wo Sze
        3. h814_20091221.patch
          3 kB
          Tsz-wo Sze
        4. privateInputStream.patch
          0.7 kB
          Hairong Kuang

          Issue Links

            Activity

              People

              • Assignee:
                szetszwo Tsz-wo Sze
                Reporter:
                szetszwo Tsz-wo Sze
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: