Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 34287 invoked from network); 8 May 2008 10:03:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 May 2008 10:03:20 -0000 Received: (qmail 32505 invoked by uid 500); 8 May 2008 10:03:19 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 32485 invoked by uid 500); 8 May 2008 10:03:19 -0000 Mailing-List: contact core-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-dev@hadoop.apache.org Delivered-To: mailing list core-dev@hadoop.apache.org Received: (qmail 32474 invoked by uid 99); 8 May 2008 10:03:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 May 2008 03:03:18 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 May 2008 10:02:41 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 123E3234C10C for ; Thu, 8 May 2008 03:02:56 -0700 (PDT) Message-ID: <310054243.1210240976073.JavaMail.jira@brutus> Date: Thu, 8 May 2008 03:02:56 -0700 (PDT) From: "Steve Loughran (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Commented: (HADOOP-3363) HDFS throws a InconsistentFSStateException when the name node starts up on a directory that isnt formatted In-Reply-To: <2064791324.1210196635736.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-3363?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12595180#action_12595180 ] Steve Loughran commented on HADOOP-3363: ---------------------------------------- I certainly expect the operation to fail, but it shouldnt be with a 'you havent upgraded' message. Looking at the code in analyzeStorage(), there is a check for an unformatted filesystem later, which then returns a StorageState.NOT_FORMATTED response to FSImage.recoverTransitionRead(), which then chooses its actions based on filesystem state. Only it isnt getting a chance to apply its policy when not formatted, because the exception is being thrown and forcing it off on a different path. > HDFS throws a InconsistentFSStateException when the name node starts up on a directory that isnt formatted > ---------------------------------------------------------------------------------------------------------- > > Key: HADOOP-3363 > URL: https://issues.apache.org/jira/browse/HADOOP-3363 > Project: Hadoop Core > Issue Type: Bug > Affects Versions: 0.16.3 > Environment: namenode deployed on java1.6/ubuntu8.04 in a SmartFrog managed JVM > Reporter: Steve Loughran > Priority: Trivial > > I deploy a namenode with directories that exist but are empty, an InconsistentFSStateException is thrown instead of the FS entering the unformatted state -the check for upgrade state fails when there is no file system there at all. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.