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 2438B1730D for ; Tue, 10 Mar 2015 03:00:50 +0000 (UTC) Received: (qmail 50396 invoked by uid 500); 10 Mar 2015 03:00:49 -0000 Delivered-To: apmail-hadoop-hdfs-dev-archive@hadoop.apache.org Received: (qmail 50294 invoked by uid 500); 10 Mar 2015 03:00:49 -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 50277 invoked by uid 99); 10 Mar 2015 03:00:49 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Mar 2015 03:00:49 +0000 Date: Tue, 10 Mar 2015 03:00:49 +0000 (UTC) From: "Allen Wittenauer (JIRA)" To: hdfs-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (HDFS-1982) Null pointer exception is thrown when NN restarts with a block lesser in size than the block that is present in DN1 but the generation stamp is greater in the NN 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-1982?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Allen Wittenauer resolved HDFS-1982. ------------------------------------ Resolution: Won't Fix > Null pointer exception is thrown when NN restarts with a block lesser in size than the block that is present in DN1 but the generation stamp is greater in the NN > ------------------------------------------------------------------------------------------------------------------------------------------------------------------ > > Key: HDFS-1982 > URL: https://issues.apache.org/jira/browse/HDFS-1982 > Project: Hadoop HDFS > Issue Type: Bug > Components: namenode > Affects Versions: 0.20-append > Environment: Linux > Reporter: ramkrishna.s.vasudevan > > Conisder the following scenario. > WE have a cluster with one NN and 2 DN. > We write some file. > One of the block is written in DN1 but not yet completed in DN2 local disk. > Now DN1 gets killed and so pipeline recovery happens for the block with the size as in DN2 but the generation stamp gets updated in the NN. > DN2 also gets killed. > Now restart NN and DN1 > Now if NN restarts, the block that NN has greater time stamp but the size is lesser in the NN. > This leads to Null pointer exception in addstoredblock api -- This message was sent by Atlassian JIRA (v6.3.4#6332)