Ted Yu created HBASE-10515:
------------------------------

             Summary: 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: Minor


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.1.5#6160)

Reply via email to