You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Andrew Purtell (JIRA)" <ji...@apache.org> on 2014/06/08 23:25:03 UTC

[jira] [Updated] (HBASE-10515) Potential null pointer dereference in HFileArchiver#archiveRegion()

     [ 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)