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] [Updated] (HBASE-15843) Replace RegionState.getRegionInTransition() Map with a Set
Date Tue, 17 May 2016 15:01:13 GMT

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

Matteo Bertozzi updated HBASE-15843:
------------------------------------
    Attachment:     (was: HBASE-15843-v1.patch)

> Replace RegionState.getRegionInTransition() Map with a Set
> ----------------------------------------------------------
>
>                 Key: HBASE-15843
>                 URL: https://issues.apache.org/jira/browse/HBASE-15843
>             Project: HBase
>          Issue Type: Improvement
>          Components: master, Region Assignment
>    Affects Versions: 2.0.0, 1.3.0, 1.2.1
>            Reporter: Matteo Bertozzi
>            Assignee: Matteo Bertozzi
>            Priority: Trivial
>             Fix For: 2.0.0
>
>         Attachments: HBASE-15843-v0.patch
>
>
> RegionState.getRegionInTransition() is always used as a Set.
> replace the Map with a Set, avoid some allocation and extra code.
> also ClusterStatus.RegionInTransition has duplicated information.
> The spec field contains the regionName (not encoded). 
> but we have the same info as part of the region_state with the HRegionInfo serialized.
> unfortunately I don't think we can get rid of 'spec' that being a required field.
> {noformat}
> message RegionInTransition {
>   required RegionSpecifier spec = 1;
>   required RegionState region_state = 2;
> }
> {noformat}



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

Mime
View raw message