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 0F52145C7 for ; Wed, 22 Jun 2011 00:19:15 +0000 (UTC) Received: (qmail 43875 invoked by uid 500); 22 Jun 2011 00:19:14 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 43845 invoked by uid 500); 22 Jun 2011 00:19:14 -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 43837 invoked by uid 99); 22 Jun 2011 00:19:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jun 2011 00:19:14 +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, 22 Jun 2011 00:19: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 D402E427893 for ; Wed, 22 Jun 2011 00:18:51 +0000 (UTC) Date: Wed, 22 Jun 2011 00:18:51 +0000 (UTC) From: "Eli Collins (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <1174178642.26838.1308701931864.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <2055951427.23336.1308632507481.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HDFS-2093) 1073: Handle case where an entirely empty log is left during NN crash 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-2093?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13052965#comment-13052965 ] Eli Collins commented on HDFS-2093: ----------------------------------- Marking the log as corrupt makes sense since that enforces the variant that all valid logs have the START_LOG_SEGMENT op. doTestCrashRecoveryEmptyLog assumes the cluster should not start, even if just one of the dirs has a corrupted log, shouldn't the cluster start as long as only one of the in progress logs was truncated? Nit: "it has no transactions" should be indented. Otherwise looks great. > 1073: Handle case where an entirely empty log is left during NN crash > --------------------------------------------------------------------- > > Key: HDFS-2093 > URL: https://issues.apache.org/jira/browse/HDFS-2093 > 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-2093.txt, hdfs-2093.txt, hdfs-2093.txt > > > In fault-testing the HDFS-1073 branch, I saw the following situation: > - NN has two storage directories, but one is in failed state > - NN starts to roll edits logs to edits_inprogress_5160285 > - NN then crashes > - on restart, it detects the truncated log, but since it has 0 txns, it finalizes it to the nonsense log name edits_5160285-5160284. > - It then starts logs again at edits_inprogress_5160285. > - After this point, no checkpoints or future NN startups succeed since there are two logs starting with the same txid -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira