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 14F85DE70 for ; Wed, 21 Nov 2012 18:07:59 +0000 (UTC) Received: (qmail 56034 invoked by uid 500); 21 Nov 2012 18:07:58 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 55988 invoked by uid 500); 21 Nov 2012 18:07:58 -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 55949 invoked by uid 99); 21 Nov 2012 18:07:58 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Nov 2012 18:07:58 +0000 Date: Wed, 21 Nov 2012 18:07:58 +0000 (UTC) From: "Suresh Srinivas (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <1937876824.13258.1353521278807.JavaMail.jiratomcat@arcas> In-Reply-To: <1542034305.975.1353278818233.JavaMail.jiratomcat@arcas> Subject: [jira] [Updated] (HDFS-4208) NameNode could be stuck in SafeMode due to never-created blocks MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HDFS-4208?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Suresh Srinivas updated HDFS-4208: ---------------------------------- Summary: NameNode could be stuck in SafeMode due to never-created blocks (was: NameNode could be stuck in SafeMode due to never-created blocks in branch-1) > NameNode could be stuck in SafeMode due to never-created blocks > --------------------------------------------------------------- > > Key: HDFS-4208 > URL: https://issues.apache.org/jira/browse/HDFS-4208 > Project: Hadoop HDFS > Issue Type: Bug > Components: name-node > Affects Versions: 1.2.0 > Reporter: Brandon Li > Assignee: Brandon Li > Attachments: HDFS-4208.branch-1.patch, HDFS-4208.branch-1.patch, HDFS-4208.branch-1.patch > > > In one test case, NameNode allocated a block and then was killed before the client got the addBlock response. After NameNode restarted, it couldn't get out of SafeMode waiting for the block which was never created. In trunk, NameNode can get out of SafeMode since it only counts complete blocks. However branch-1 doesn't have the clear notion of under-constructioned-block in Namenode. > JIRA HDFS-4212 is to track the never-created-block issue and this JIRA is to fix NameNode in branch-1 so it can get out of SafeMode when never-created-block exists. > The proposed idea is for SafeMode not to count the zero-sized last block in an under-construction file as part of total blcok count. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira