Return-Path: X-Original-To: apmail-hadoop-hdfs-dev-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 520C281F6 for ; Mon, 5 Sep 2011 17:48:35 +0000 (UTC) Received: (qmail 31422 invoked by uid 500); 5 Sep 2011 17:48:34 -0000 Delivered-To: apmail-hadoop-hdfs-dev-archive@hadoop.apache.org Received: (qmail 31095 invoked by uid 500); 5 Sep 2011 17:48:33 -0000 Mailing-List: contact hdfs-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-dev@hadoop.apache.org Delivered-To: mailing list hdfs-dev@hadoop.apache.org Received: (qmail 31084 invoked by uid 99); 5 Sep 2011 17:48:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Sep 2011 17:48:33 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,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; Mon, 05 Sep 2011 17:48:31 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 460675932C for ; Mon, 5 Sep 2011 17:48:10 +0000 (UTC) Date: Mon, 5 Sep 2011 17:48:10 +0000 (UTC) From: "Harsh J (JIRA)" To: hdfs-dev@hadoop.apache.org Message-ID: <726786347.17645.1315244890283.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (HDFS-2311) With just 1 block on the HDFS cluster, NN exits safemode on startup immediately. 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 With just 1 block on the HDFS cluster, NN exits safemode on startup immediately. -------------------------------------------------------------------------------- Key: HDFS-2311 URL: https://issues.apache.org/jira/browse/HDFS-2311 Project: Hadoop HDFS Issue Type: Bug Components: name-node Affects Versions: 0.20.203.0 Reporter: Harsh J Priority: Minor This is cause: (int) ((1 Block) * (0.999f Threshold Default Pct)) == 0, in which case SafeModeInfo's checks of modes makes an simple, direct exit of the safemode. Faulty code is possibly in FSNamesystem#setBlockTotal. This is a non major issue since with 2 blocks it would work fine, and will work fine with 1.0f Threshold Pct too. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira