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

Replace usage of ExactSizeInputStream with LimitInputStream.

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.0, 3.0.0-alpha1
    • Component/s: None
    • Labels:
    • Hadoop Flags:
      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.001.patch
          10 kB
          Walter Su
        2. HDFS-7988.002.patch
          10 kB
          Walter Su

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: