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 801037CA5 for ; Tue, 23 Aug 2011 21:33:52 +0000 (UTC) Received: (qmail 10700 invoked by uid 500); 23 Aug 2011 21:33:52 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 10493 invoked by uid 500); 23 Aug 2011 21:33:51 -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 10463 invoked by uid 99); 23 Aug 2011 21:33:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Aug 2011 21:33:50 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Aug 2011 21:33:49 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 5A5D8CC895 for ; Tue, 23 Aug 2011 21:33:29 +0000 (UTC) Date: Tue, 23 Aug 2011 21:33:29 +0000 (UTC) From: "Todd Lipcon (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <835033297.6859.1314135209367.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HDFS-1108) Log newly allocated blocks 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-1108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13089782#comment-13089782 ] Todd Lipcon commented on HDFS-1108: ----------------------------------- Currently there are two proposals for the implementation of passing edits to the standby: 1) RPC based (BackupNode) 2) shared storage based (AvatarNode-like design) In the RPC-based mechanism, it makes sense to support a "semi-durable flush" - meaning that it has been ACKed to RAM on the standby. In the shared-storage model, there is no way to ensure that data has been made durable aside from issuing a full fsync. In essence what you're proposing is very much like the difference between "hflush" and "hsync" in the DFS write pipeline -- ie a "flush to another node's memory" API distinct from "flush to disk". Given that this API is not currently implemented by the BackupNode, and the shared-storage approach requires an fsync, I don't think we should block this fix. Do you plan to implement this new BackupNode feature for trunk in the near future so that we can unblock this work? > Log newly allocated blocks > -------------------------- > > Key: HDFS-1108 > URL: https://issues.apache.org/jira/browse/HDFS-1108 > Project: Hadoop HDFS > Issue Type: Sub-task > Components: name-node > Reporter: dhruba borthakur > Assignee: Todd Lipcon > Fix For: HA branch (HDFS-1623) > > Attachments: HDFS-1108.patch, hdfs-1108-habranch.txt, hdfs-1108.txt > > > The current HDFS design says that newly allocated blocks for a file are not persisted in the NN transaction log when the block is allocated. Instead, a hflush() or a close() on the file persists the blocks into the transaction log. It would be nice if we can immediately persist newly allocated blocks (as soon as they are allocated) for specific files. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira