Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
0.92.0
-
None
-
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
Attachments
Issue Links
- duplicates
-
HBASE-6870 HTable#coprocessorExec always scan the whole table
- Closed
- relates to
-
HBASE-5489 Add HTable accessor to get regions for a key range
- Closed