Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 5E348200B80 for ; Wed, 10 Aug 2016 04:41:25 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 5C615160AA5; Wed, 10 Aug 2016 02:41:25 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id A4D48160AAD for ; Wed, 10 Aug 2016 04:41:24 +0200 (CEST) Received: (qmail 60778 invoked by uid 500); 10 Aug 2016 02:41:23 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 60466 invoked by uid 99); 10 Aug 2016 02:41:23 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Aug 2016 02:41:23 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id BF7CF2C02A6 for ; Wed, 10 Aug 2016 02:41:22 +0000 (UTC) Date: Wed, 10 Aug 2016 02:41:22 +0000 (UTC) From: "Youwei Wang (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (HDFS-8957) Consolidate client striping input stream codes for stateful read and positional read MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 10 Aug 2016 02:41:25 -0000 [ https://issues.apache.org/jira/browse/HDFS-8957?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15414607#comment-15414607 ] Youwei Wang edited comment on HDFS-8957 at 8/10/16 2:40 AM: ------------------------------------------------------------ The uploaded patch "HDFS-8957.v2.patch" depends on the HDFS-8901.v14.patch at this link: https://issues.apache.org/jira/browse/HDFS-8901 was (Author: hayabusa): This patch depends on the HDFS-8901.v14.patch at this link: https://issues.apache.org/jira/browse/HDFS-8901 > Consolidate client striping input stream codes for stateful read and positional read > ------------------------------------------------------------------------------------ > > Key: HDFS-8957 > URL: https://issues.apache.org/jira/browse/HDFS-8957 > Project: Hadoop HDFS > Issue Type: Sub-task > Components: erasure-coding > Reporter: Kai Zheng > Assignee: Youwei Wang > Attachments: HDFS-8957-v1.patch, HDFS-8957.v2.patch > > > Currently we have different implementations for client striping read, having both *StatefulStripeReader* and *PositionStripeReader*. I attempted to consolidate the two implementations into one, and it results in much simpler codes, and also better performance. Now in both read paths, it will: > * Use pooled ByteBuffers, as currently stateful read does; > * Read directly into application's buffer, as currently positional read does; > * Try to align and merge multiple stripes, as currently positional read does; > * Use *ECChunk* version decode API. > The resultant *StripeReader* is approaching very near now to the ideal state desired by next step, employing *ErasureCoder* API instead of *RawErasureCoder* API. > Will upload an initial patch to illustrate the rough change, even though it depends on other issues. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org