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 63FAE63F3 for ; Thu, 26 May 2011 07:48:35 +0000 (UTC) Received: (qmail 27321 invoked by uid 500); 26 May 2011 07:48:35 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 27126 invoked by uid 500); 26 May 2011 07:48:32 -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 26255 invoked by uid 99); 26 May 2011 07:48:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 May 2011 07:48: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; Thu, 26 May 2011 07:48: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 5EC0DDF0F0 for ; Thu, 26 May 2011 07:47:47 +0000 (UTC) Date: Thu, 26 May 2011 07:47:47 +0000 (UTC) From: "Todd Lipcon (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <1743238637.44637.1306396067384.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1171270776.43709.1306366729019.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (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:comment-tabpanel&focusedCommentId=13039568#comment-13039568 ] Todd Lipcon commented on HDFS-2001: ----------------------------------- I let it loop for a while and it did somewhere around 150,000 distinct checkpoints coming from two NNs (of a very small image). I think this is pretty stable / good to go. > 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) > > Attachments: hdfs-2001.txt > > > 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