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

Replace usage of ExactSizeInputStream with LimitInputStream.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.8.0, 3.0.0-alpha1
    • None
    • Reviewed

    Description

      HDFS has a class named ExactSizeInputStream used in the protobuf translation layer. This class wraps another InputStream, but constraints the readable bytes to a specified length. The functionality is nearly identical to LimitInputStream in Hadoop Common, with some differences in semantics regarding premature EOF. This issue proposes to eliminate ExactSizeInputStream in favor of LimitInputStream to reduce the size of the codebase.

      Attachments

        1. HDFS-7988.002.patch
          10 kB
          Walter Su
        2. HDFS-7988.001.patch
          10 kB
          Walter Su

        Activity

          People

            walter.k.su Walter Su
            cnauroth Chris Nauroth
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: