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 <zhangduo@apache.org>
This commit is contained in:
parent
76bc412fc4
commit
a6b0e2dc85
|
@ -912,7 +912,7 @@ class ConnectionImplementation implements ClusterConnection, Closeable {
|
|||
byte[] metaStopKey =
|
||||
RegionInfo.createRegionName(tableName, HConstants.EMPTY_START_ROW, "", false);
|
||||
Scan s = new Scan().withStartRow(metaStartKey).withStopRow(metaStopKey, true)
|
||||
.addFamily(HConstants.CATALOG_FAMILY).setReversed(true).setCaching(5)
|
||||
.addFamily(HConstants.CATALOG_FAMILY).setReversed(true).setCaching(1)
|
||||
.setReadType(ReadType.PREAD);
|
||||
|
||||
switch (this.metaReplicaMode) {
|
||||
|
|
Loading…
Reference in New Issue