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 917AA6776 for ; Wed, 15 Jun 2011 01:01:13 +0000 (UTC) Received: (qmail 59666 invoked by uid 500); 15 Jun 2011 01:01:13 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 59543 invoked by uid 500); 15 Jun 2011 01:01:13 -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 59345 invoked by uid 99); 15 Jun 2011 01:01:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Jun 2011 01:01:13 +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, 15 Jun 2011 01:01:12 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id EC1A5417CE4 for ; Wed, 15 Jun 2011 01:00:51 +0000 (UTC) Date: Wed, 15 Jun 2011 01:00:51 +0000 (UTC) From: "Todd Lipcon (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <176628703.5345.1308099651963.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1190453629.5342.1308099527355.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (HDFS-2074) 1073: determine edit log validity by truly reading and validating transactions 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-2074?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Todd Lipcon updated HDFS-2074: ------------------------------ Description: HDFS-2003 separated the deserialization/reading of log records from the application of those records to a namesystem. This means that we can now read through an edit log in order to determine how many valid transactions are actually stored within. This is an improvement on what the 1073 branch currently does, which is to simply look at how many bytes come before the 0xFFFF... trailer at the end of the file. The next step after this is to use these new functions so that, when the NN starts up and finds "in-progress" files like "edits_2_inprogress", it will rename them to their finalized name like "edits_2-30" based on how many transactions are truly stored within. This will simplify logic elsewhere. > 1073: determine edit log validity by truly reading and validating transactions > ------------------------------------------------------------------------------ > > Key: HDFS-2074 > URL: https://issues.apache.org/jira/browse/HDFS-2074 > Project: Hadoop HDFS > Issue Type: Sub-task > Components: name-node > Affects Versions: Edit log branch (HDFS-1073) > Reporter: Todd Lipcon > Assignee: Todd Lipcon > Fix For: Edit log branch (HDFS-1073) > > > HDFS-2003 separated the deserialization/reading of log records from the application of those records to a namesystem. This means that we can now read through an edit log in order to determine how many valid transactions are actually stored within. This is an improvement on what the 1073 branch currently does, which is to simply look at how many bytes come before the 0xFFFF... trailer at the end of the file. > The next step after this is to use these new functions so that, when the NN starts up and finds "in-progress" files like "edits_2_inprogress", it will rename them to their finalized name like "edits_2-30" based on how many transactions are truly stored within. This will simplify logic elsewhere. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira