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 108C56F31 for ; Wed, 13 Jul 2011 19:41:23 +0000 (UTC) Received: (qmail 43911 invoked by uid 500); 13 Jul 2011 19:41:22 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 43578 invoked by uid 500); 13 Jul 2011 19:41:22 -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 43555 invoked by uid 99); 13 Jul 2011 19:41:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jul 2011 19:41:21 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_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; Wed, 13 Jul 2011 19:41:20 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 296414E8B5 for ; Wed, 13 Jul 2011 19:41:00 +0000 (UTC) Date: Wed, 13 Jul 2011 19:41:00 +0000 (UTC) From: "Eli Collins (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <1655894437.11008.1310586060166.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <918687318.34936.1306115087354.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HDFS-1979) HDFS-1073: Fix backupnode for new edits/image layout 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-1979?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13064800#comment-13064800 ] Eli Collins commented on HDFS-1979: ----------------------------------- This is really nice. I like how BackupNodeProtocol is explicit now and we can get rid of the spool file. The new tests look good. Should setStorageInfo also setBlockPoolID and setClusterID? Eg in BN#registerWith where we call all three I'm wondering why those aren't a single method. In FSIMage#getLastAppliedTxId why return editLog.getLastWrittenTxId()? It seems like this method is for asking for the last tx from loading the image/edits log (a static property), if someone wants the the last tx written to the edits log (dynamic) they should use that API directly. reloadFromImageFile is addressed in HDFS-2133, will comment there. Why does LogLoadPlan() call super()? Nits: * In rollForwardByApplyingLog brace is on it's own line * In downloadEditsToStorage pull f onto prev line * BackupNodeProtocol isAlive and startLogSegment need javadocs * FSNamesystem#registerBackupNode params could use a comment/better names to distinguish which registration is which (eg bnReg, nnReg) * BN "Is journal spooling in progress" comment should be replaced with a new description. Eg the state transition: DROP_UNTIL_NEXT_ROLL --> JOURNAL_ONLY <--> IN_SYNC > HDFS-1073: Fix backupnode for new edits/image layout > ---------------------------------------------------- > > Key: HDFS-1979 > URL: https://issues.apache.org/jira/browse/HDFS-1979 > Project: Hadoop HDFS > Issue Type: Sub-task > Reporter: Todd Lipcon > Assignee: Todd Lipcon > Attachments: hdfs-1979-prelim.txt, hdfs-1979.txt, hdfs-1979.txt > > -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira