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 0E9EE186B6 for ; Thu, 28 Jan 2016 06:02:53 +0000 (UTC) Received: (qmail 20987 invoked by uid 500); 28 Jan 2016 06:02:40 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 20931 invoked by uid 500); 28 Jan 2016 06:02:40 -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 20919 invoked by uid 99); 28 Jan 2016 06:02:40 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Jan 2016 06:02:40 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id D274A2C1F60 for ; Thu, 28 Jan 2016 06:02:39 +0000 (UTC) Date: Thu, 28 Jan 2016 06:02:39 +0000 (UTC) From: "GAO Rui (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-9494) Parallel optimization of DFSStripedOutputStream#flushAllInternals( ) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HDFS-9494?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D15120= 834#comment-15120834 ]=20 GAO Rui commented on HDFS-9494: ------------------------------- Oh, I see. I am agree with you. I have upload an new 08 patch to address pr= evious mentioned issues. Thank you again for your detailed comments!=20 > Parallel optimization of DFSStripedOutputStream#flushAllInternals( ) > -------------------------------------------------------------------- > > Key: HDFS-9494 > URL: https://issues.apache.org/jira/browse/HDFS-9494 > Project: Hadoop HDFS > Issue Type: Sub-task > Reporter: GAO Rui > Assignee: GAO Rui > Priority: Minor > Fix For: 3.0.0 > > Attachments: HDFS-9494-origin-trunk.00.patch, HDFS-9494-origin-tr= unk.01.patch, HDFS-9494-origin-trunk.02.patch, HDFS-9494-origin-trunk.03.pa= tch, HDFS-9494-origin-trunk.04.patch, HDFS-9494-origin-trunk.05.patch, HDFS= -9494-origin-trunk.06.patch, HDFS-9494-origin-trunk.07.patch, HDFS-9494-ori= gin-trunk.08.patch > > > Currently, in DFSStripedOutputStream#flushAllInternals( ), we trigger and= =20 > wait for flushInternal( ) in sequence. So the runtime flow is like: > {code} > Streamer0#flushInternal( ) > Streamer0#waitForAckedSeqno( ) > Streamer1#flushInternal( ) > Streamer1#waitForAckedSeqno( ) > =E2=80=A6 > Streamer8#flushInternal( ) > Streamer8#waitForAckedSeqno( ) > {code} > It could be better to trigger all the streamers to flushInternal( ) and > wait for all of them to return from waitForAckedSeqno( ), and then flush= AllInternals( ) returns. -- This message was sent by Atlassian JIRA (v6.3.4#6332)