hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matteo Bertozzi (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (HBASE-11213) RestoreSnapshotHelper#restoreHdfsRegions() accesses parentsMap without synchronization
Date Tue, 20 May 2014 20:18:38 GMT

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

Matteo Bertozzi resolved HBASE-11213.
-------------------------------------

    Resolution: Invalid

There is no concurrent access to that map.
restoreHdfsRegions() is populating and there is no concurrency there.
And RestoreMetaChanges.updateMetaParentRegions() is just reading from the map, with no one
doing updates in the mean time. Everything was written before returning RestoreMetaChanges.

> RestoreSnapshotHelper#restoreHdfsRegions() accesses parentsMap without synchronization
> --------------------------------------------------------------------------------------
>
>                 Key: HBASE-11213
>                 URL: https://issues.apache.org/jira/browse/HBASE-11213
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Priority: Trivial
>
> At line 175:
> {code}
>     RestoreMetaChanges metaChanges = new RestoreMetaChanges(parentsMap);
> {code}
> Access to parentsMap should be synchronized.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message