Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
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.