hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HBASE-15598) Potential null deference in CloneSnapshotProcedure#preCloneSnapshot()
Date Wed, 06 Apr 2016 21:46:25 GMT

     [ https://issues.apache.org/jira/browse/HBASE-15598?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ted Yu updated HBASE-15598:
---------------------------
    Attachment: 15598.v1.patch

There is more than one way to fix the issue.

Patch v1 adds a method to SnapshotManifest which returns the number of region manifests.

> 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
>         Attachments: 15598.v1.patch
>
>
> 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)

Mime
View raw message