Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1F59D17D07 for ; Wed, 25 Mar 2015 03:59:53 +0000 (UTC) Received: (qmail 2906 invoked by uid 500); 25 Mar 2015 03:59:52 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 2843 invoked by uid 500); 25 Mar 2015 03:59:52 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 2832 invoked by uid 99); 25 Mar 2015 03:59:52 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Mar 2015 03:59:52 +0000 Date: Wed, 25 Mar 2015 03:59:52 +0000 (UTC) From: "Walter Su (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HDFS-7988) Replace usage of ExactSizeInputStream with LimitInputStream. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HDFS-7988?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Walter Su updated HDFS-7988: ---------------------------- Attachment: HDFS-7988.001.patch > 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 > Attachments: HDFS-7988.001.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)