You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Enis Soztutar (JIRA)" <ji...@apache.org> on 2016/07/01 16:35:11 UTC

[jira] [Updated] (HBASE-16133) RSGroupBasedLoadBalancer.retainAssignment() might miss a region

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

Enis Soztutar updated HBASE-16133:
----------------------------------
      Resolution: Fixed
    Hadoop Flags: Reviewed
          Status: Resolved  (was: Patch Available)

Pushed to master. Thanks Ted for taking a look. 

> RSGroupBasedLoadBalancer.retainAssignment() might miss a region
> ---------------------------------------------------------------
>
>                 Key: HBASE-16133
>                 URL: https://issues.apache.org/jira/browse/HBASE-16133
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Enis Soztutar
>            Assignee: Enis Soztutar
>             Fix For: 2.0.0
>
>         Attachments: hbase-16133_v1.patch
>
>
> We have seen in the tests through the IntegrationTestRSGroup that we may miss assigning a region. 
> It is a simple logic error here: 
> {code}
>         if (server != null && !assignments.containsKey(server)) {
>           assignments.put(server, new ArrayList<HRegionInfo>());
>         } else if (server != null) {
>            assignments.get(server).add(region);
>          } else {
> {code}
> in the first condition, we are not adding the region to the newly created ArrayList. 



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