You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "huaxiang sun (JIRA)" <ji...@apache.org> on 2017/05/05 21:20:04 UTC

[jira] [Created] (HBASE-18004) getRegionLocations needs to be called once in ScannerCallableWithReplicas#call()

huaxiang sun created HBASE-18004:
------------------------------------

             Summary: getRegionLocations  needs to be called once in ScannerCallableWithReplicas#call()
                 Key: HBASE-18004
                 URL: https://issues.apache.org/jira/browse/HBASE-18004
             Project: HBase
          Issue Type: Improvement
          Components: Client
    Affects Versions: 2.0.0
            Reporter: huaxiang sun
            Assignee: huaxiang sun
            Priority: Minor


Look at this line,
https://github.com/apache/hbase/blob/master/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ScannerCallableWithReplicas.java#L145

It calls getRegionLocations() to get the primary region's locations. It's usage is to figure out table's region replications. Since table's region replication wont be changed until the table is disabled. It is safe to cache this region replication.




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)