Ted Yu created HBASE-15598:
------------------------------

             Summary: Potential null deference in 
CloneSnapshotProcedure#preCloneSnapshot()
                 Key: HBASE-15598
                 URL: https://issues.apache.org/jira/browse/HBASE-15598
             Project: HBase
          Issue Type: Bug
            Reporter: Ted Yu
            Assignee: Ted Yu


In CloneSnapshotProcedure#preCloneSnapshot():
{code}
      ProcedureSyncWait.getMasterQuotaManager(env)
        .checkNamespaceTableAndRegionQuota(getTableName(), 
manifest.getRegionManifestsMap().size());
{code}
Here is related code in SnapshotManifest#getRegionManifestsMap() :
{code}
    if (regionManifests == null || regionManifests.size() == 0) return null;
...
{code}
When there is no region manifest, null would be returned, resulting in NPE in 
CloneSnapshotProcedure#preCloneSnapshot()



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to