You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Sergey Shelukhin (JIRA)" <ji...@apache.org> on 2015/04/16 20:22:58 UTC

[jira] [Commented] (HBASE-10491) RegionLocations::getRegionLocation can return unexpected replica

    [ https://issues.apache.org/jira/browse/HBASE-10491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14498449#comment-14498449 ] 

Sergey Shelukhin commented on HBASE-10491:
------------------------------------------

What later?

> RegionLocations::getRegionLocation can return unexpected replica
> ----------------------------------------------------------------
>
>                 Key: HBASE-10491
>                 URL: https://issues.apache.org/jira/browse/HBASE-10491
>             Project: HBase
>          Issue Type: Sub-task
>    Affects Versions: hbase-10070
>            Reporter: Sergey Shelukhin
>
> The method returns first non-null replica.
> If first replica is assumed to always be non-null (discussed with Enis), then this code is not necessary, it should return 0th one, maybe assert it's not null.
> If that is not the case, then code may be incorrect and may return non-primary to some code (locateRegion overload) that doesn't expect it.
> Perhaps method should be called getAnyRegionReplica or something like that; and get(Primary?)RegionLocation should return the first.



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