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 103BF18FFC for ; Wed, 17 Jun 2015 08:53:01 +0000 (UTC) Received: (qmail 76403 invoked by uid 500); 17 Jun 2015 08:53:00 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 76349 invoked by uid 500); 17 Jun 2015 08:53:00 -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 76337 invoked by uid 99); 17 Jun 2015 08:53:00 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Jun 2015 08:53:00 +0000 Date: Wed, 17 Jun 2015 08:53:00 +0000 (UTC) From: "Walter Su (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-8254) In StripedDataStreamer, it is hard to tolerate datanode failure in the leading streamer 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-8254?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14589503#comment-14589503 ] Walter Su commented on HDFS-8254: --------------------------------- The patch did great job on synchronization. With the patch, we can fix the special cases easily after. Btw, you missed {{initExtenalError()}}. I'm +1 after addressing this. > In StripedDataStreamer, it is hard to tolerate datanode failure in the leading streamer > --------------------------------------------------------------------------------------- > > Key: HDFS-8254 > URL: https://issues.apache.org/jira/browse/HDFS-8254 > Project: Hadoop HDFS > Issue Type: Sub-task > Reporter: Tsz Wo Nicholas Sze > Assignee: Tsz Wo Nicholas Sze > Attachments: h8254_20150526.patch, h8254_20150526b.patch, h8254_20150616.patch > > > StripedDataStreamer javadoc is shown below. > {code} > * The StripedDataStreamer class is used by {@link DFSStripedOutputStream}. > * There are two kinds of StripedDataStreamer, leading streamer and ordinary > * stream. Leading streamer requests a block group from NameNode, unwraps > * it to located blocks and transfers each located block to its corresponding > * ordinary streamer via a blocking queue. > {code} > Leading streamer is the streamer with index 0. When the datanode of the leading streamer fails, the other steamers cannot continue since no one will request a block group from NameNode anymore. -- This message was sent by Atlassian JIRA (v6.3.4#6332)