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 53CE0D641 for ; Wed, 7 Nov 2012 01:02:13 +0000 (UTC) Received: (qmail 28796 invoked by uid 500); 7 Nov 2012 01:02:13 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 28741 invoked by uid 500); 7 Nov 2012 01:02:12 -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 28654 invoked by uid 99); 7 Nov 2012 01:02:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Nov 2012 01:02:12 +0000 Date: Wed, 7 Nov 2012 01:02:12 +0000 (UTC) From: "Aaron T. Myers (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <1139915372.78180.1352250132866.JavaMail.jiratomcat@arcas> In-Reply-To: <473534637.78170.1352250033434.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (HDFS-4158) FSDirectory#hasSnapshot will NPE when deleting an empty directory 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-4158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13492010#comment-13492010 ] Aaron T. Myers commented on HDFS-4158: -------------------------------------- Forgot to mention - the snapshots branch doesn't currently compile without HDFS-4150, so I tested this patch by applying the latest patch there first. > FSDirectory#hasSnapshot will NPE when deleting an empty directory > ----------------------------------------------------------------- > > Key: HDFS-4158 > URL: https://issues.apache.org/jira/browse/HDFS-4158 > Project: Hadoop HDFS > Issue Type: Sub-task > Components: name-node > Affects Versions: Snapshot (HDFS-2802) > Reporter: Aaron T. Myers > Assignee: Aaron T. Myers > Attachments: HDFS-4158.patch > > > The method attempts to iterate over the child list of the directory, but that list may be null and this isn't handled currently. -- 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