[
https://issues.apache.org/jira/browse/HDFS-7988?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Haohui Mai updated HDFS-7988:
-----------------------------
Resolution: Fixed
Hadoop Flags: Reviewed
Fix Version/s: 2.8.0
Status: Resolved (was: Patch Available)
I've committed the patch to trunk and branch-2. Thanks [~walter.k.su] for the
contribution.
> Replace usage of ExactSizeInputStream with LimitInputStream.
> ------------------------------------------------------------
>
> Key: HDFS-7988
> URL: https://issues.apache.org/jira/browse/HDFS-7988
> Project: Hadoop HDFS
> Issue Type: Improvement
> Reporter: Chris Nauroth
> Assignee: Walter Su
> Priority: Minor
> Labels: BB2015-05-TBR
> Fix For: 2.8.0
>
> Attachments: HDFS-7988.001.patch, HDFS-7988.002.patch
>
>
> 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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)