Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E756011122 for ; Sun, 8 Jun 2014 21:25:04 +0000 (UTC) Received: (qmail 7511 invoked by uid 500); 8 Jun 2014 21:25:03 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 7448 invoked by uid 500); 8 Jun 2014 21:25:03 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 7389 invoked by uid 99); 8 Jun 2014 21:25:03 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Jun 2014 21:25:03 +0000 Date: Sun, 8 Jun 2014 21:25:03 +0000 (UTC) From: "Andrew Purtell (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-10515) Potential null pointer dereference in HFileArchiver#archiveRegion() 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/HBASE-10515?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andrew Purtell updated HBASE-10515: ----------------------------------- Resolution: Won't Fix Status: Resolved (was: Patch Available) Patch looks pretty useless IMHO > Potential null pointer dereference in HFileArchiver#archiveRegion() > ------------------------------------------------------------------- > > Key: HBASE-10515 > URL: https://issues.apache.org/jira/browse/HBASE-10515 > Project: HBase > Issue Type: Bug > Reporter: Ted Yu > Assignee: Ted Yu > Priority: Trivial > Attachments: 10515-v1.txt, 10515-v2.txt > > > Here is related code: > {code} > if (tableDir == null || regionDir == null) { > LOG.error("No archive directory could be found because tabledir (" + tableDir > + ") or regiondir (" + regionDir + "was null. Deleting files instead."); > deleteRegionWithoutArchiving(fs, regionDir); > {code} > When regionDir is null, calling deleteRegionWithoutArchiving() would lead to NPE in FileSystem.delete(). -- This message was sent by Atlassian JIRA (v6.2#6252)