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

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

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.0
    • Component/s: Client
    • Labels:
      None
    • Hadoop Flags:
      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
          huaxiang sun
        2. HBASE-18004-master-002.patch
          6 kB
          huaxiang sun
        3. HBASE-18004.branch-1.001.patch
          6 kB
          huaxiang sun

          Issue Links

            Activity

              People

              • Assignee:
                huaxiang huaxiang sun
                Reporter:
                huaxiang huaxiang sun
              • Votes:
                0 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: