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

Caching StartKeys and EndKeys of Regions

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 0.92.0
    • None
    • Client
    • None
    • all

    Description

      Each call for HTable.getStartEndKeys will read meta table.

      In particular,
      in the case of client side multi-threaded concurrency statistics,
      we must call HTable.coprocessorExec== > getStartKeysInRange ==> getStartEndKeys,
      resulting in the need to always scan the meta table.

      This is not necessary,
      we can implement the HConnectionManager.HConnectionImplementation.locateRegions(byte[] tableName) method,

      then, get the StartKeys and EndKeys from the cachedRegionLocations of HConnectionImplementation.

      Combined with https://issues.apache.org/jira/browse/HBASE-5491, can improve the performance of statistical

      Attachments

        1. HBASE-5492.patch
          3 kB
          Honghua Zhu

        Issue Links

          Activity

            People

              Unassigned Unassigned
              zhh Honghua Zhu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: