Skip to content

Commit a6b0e2d

Browse files
authored
HBASE-26590 Hbase-client Meta lookup performance regression between hbase-1 and hbase-2 (#4008) (#4011)
Change scan caching back to 1 to avoid extra work at Region Server side. For most cases, the extra 4 results fetched are wasted at the client side. Signed-off-by: Duo Zhang <[email protected]>
1 parent 76bc412 commit a6b0e2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionImplementation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,7 @@ private RegionLocations locateRegionInMeta(TableName tableName, byte[] row, bool
912912
byte[] metaStopKey =
913913
RegionInfo.createRegionName(tableName, HConstants.EMPTY_START_ROW, "", false);
914914
Scan s = new Scan().withStartRow(metaStartKey).withStopRow(metaStopKey, true)
915-
.addFamily(HConstants.CATALOG_FAMILY).setReversed(true).setCaching(5)
915+
.addFamily(HConstants.CATALOG_FAMILY).setReversed(true).setCaching(1)
916916
.setReadType(ReadType.PREAD);
917917

918918
switch (this.metaReplicaMode) {

0 commit comments

Comments
 (0)