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 EDF5618E09 for ; Wed, 27 Jan 2016 02:33:40 +0000 (UTC) Received: (qmail 42199 invoked by uid 500); 27 Jan 2016 02:33:40 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 42109 invoked by uid 500); 27 Jan 2016 02:33: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 42055 invoked by uid 99); 27 Jan 2016 02:33:40 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jan 2016 02:33:40 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id EBEB62C1F5D for ; Wed, 27 Jan 2016 02:33:39 +0000 (UTC) Date: Wed, 27 Jan 2016 02:33:39 +0000 (UTC) From: "GAO Rui (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (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:all-tabpanel ] GAO Rui updated HDFS-9494: -------------------------- Status: In Progress (was: Patch Available) > 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 > 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 > > > 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)