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 D3B9746E3 for ; Wed, 25 May 2011 23:45:30 +0000 (UTC) Received: (qmail 20334 invoked by uid 500); 25 May 2011 23:45:30 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 20286 invoked by uid 500); 25 May 2011 23:45:30 -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 20271 invoked by uid 99); 25 May 2011 23:45:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 May 2011 23:45:30 +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, 25 May 2011 23:45:28 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 55DE3DE697 for ; Wed, 25 May 2011 23:44:47 +0000 (UTC) Date: Wed, 25 May 2011 23:44:47 +0000 (UTC) From: "Todd Lipcon (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <1830820871.43737.1306367087348.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1171270776.43709.1306366729019.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (HDFS-2001) HDFS-1073: Kill previous.checkpoint, lastcheckpoint.tmp directories 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-2001?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Todd Lipcon updated HDFS-2001: ------------------------------ Component/s: name-node Description: In the old design for edits/image storage, the secondary namenode does a complicated dance of moving "current/" to "lastcheckpoint.tmp", checkpointing into "current/", then moving "lastcheckpoint.tmp" back to "previous.checkpoint". The idea here was so that there would always be one directory with a valid set of storage files. In the HDFS-1073 design, this complicated dance isn't necessary. If a checkpoint fails, we can just rm that single fsimage_N.ckpt file and still be left with a valid storage directory. So, we can just let the 2NN keep a single current/ dir around for all checkpoints and eliminate the complexity of the dance. Affects Version/s: Edit log branch (HDFS-1073) Fix Version/s: Edit log branch (HDFS-1073) > HDFS-1073: Kill previous.checkpoint, lastcheckpoint.tmp directories > ------------------------------------------------------------------- > > Key: HDFS-2001 > URL: https://issues.apache.org/jira/browse/HDFS-2001 > 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) > > > In the old design for edits/image storage, the secondary namenode does a complicated dance of moving "current/" to "lastcheckpoint.tmp", checkpointing into "current/", then moving "lastcheckpoint.tmp" back to "previous.checkpoint". The idea here was so that there would always be one directory with a valid set of storage files. > In the HDFS-1073 design, this complicated dance isn't necessary. If a checkpoint fails, we can just rm that single fsimage_N.ckpt file and still be left with a valid storage directory. > So, we can just let the 2NN keep a single current/ dir around for all checkpoints and eliminate the complexity of the dance. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira