Return-Path: Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: (qmail 60014 invoked from network); 11 Jul 2009 09:25:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Jul 2009 09:25:27 -0000 Received: (qmail 97368 invoked by uid 500); 11 Jul 2009 09:25:37 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 97339 invoked by uid 500); 11 Jul 2009 09:25:37 -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 97329 invoked by uid 99); 11 Jul 2009 09:25:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Jul 2009 09:25:37 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Jul 2009 09:25:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C51C5234C004 for ; Sat, 11 Jul 2009 02:25:14 -0700 (PDT) Message-ID: <251919992.1247304314792.JavaMail.jira@brutus> Date: Sat, 11 Jul 2009 02:25:14 -0700 (PDT) From: "Luca Telloli (JIRA)" To: hdfs-issues@hadoop.apache.org Subject: [jira] Commented: (HDFS-397) Incorporate storage directories into EditLogFileInput/Output streams MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HDFS-397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12729964#action_12729964 ] Luca Telloli commented on HDFS-397: ----------------------------------- Raghu 1. the second piece of code is correct (at least for the purpose of the patch) The first piece of code I guess should be also correct due to a name clash since {noformat} private static final String STORAGE_JSPOOL_FILE = NameNodeFile.EDITS_NEW.getName(); {noformat} I assumed it's correct since it passed the unit tests correctly. 2. in HDFS-311, for instance every time a constructor for a Input/Output stream is called, this patch matters. Have a look for instance to line 1497 and following. Finally, I think one advantage of this patch is that I achieve to avoid calling unnecessary constructors for Input/Output streams, which in previous code belonged to the necessity of strictly keeping the order of streams and the order of storage directories in sync. > Incorporate storage directories into EditLogFileInput/Output streams > -------------------------------------------------------------------- > > Key: HDFS-397 > URL: https://issues.apache.org/jira/browse/HDFS-397 > Project: Hadoop HDFS > Issue Type: Sub-task > Reporter: Luca Telloli > Assignee: Luca Telloli > Attachments: HADOOP-6001.patch, HADOOP-6001.patch, HADOOP-6001.patch, HDFS-397.patch > > -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.