Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-18004

getRegionLocations needs to be called once in ScannerCallableWithReplicas#call()

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.0.0
    • 2.0.0
    • Client
    • None
    • Reviewed

    Description

      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.

      Attachments

        1. HBASE-18004-master-001.patch
          4 kB
          Hua Xiang
        2. HBASE-18004-master-002.patch
          6 kB
          Hua Xiang
        3. HBASE-18004.branch-1.001.patch
          6 kB
          Hua Xiang

        Issue Links

          Activity

            People

              huaxiang Hua Xiang
              huaxiang Hua Xiang
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: