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

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

    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. privateInputStream.patch
          0.7 kB
          Hairong Kuang
        2. h814_20091221.patch
          3 kB
          Tsz Wo Nicholas Sze
        3. h814_20091221_0.21.patch
          3 kB
          Tsz Wo Nicholas Sze
        4. getLength-yahoo-0.20.patch
          3 kB
          Hairong Kuang

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: