HBASE-25126 Add load balance logic in hbase-client to distribute read load over meta replica regions (addendum)

This commit is contained in:
Huaxiang Sun 2020-11-09 10:29:50 -08:00 committed by stack
parent 690b4d8973
commit 9ecf6ff6a2
1 changed files with 1 additions and 1 deletions

View File

@ -189,7 +189,7 @@ public class RegionReplicaReplicationEndpoint extends HBaseReplicationEndpoint {
// later it is changed to multiple replicas. The cached location for meta may only has
// the primary region. In this case, it needs to clean up and refresh the cached meta
// locations.
if (tableDesc.isMergeEnabled()) {
if (tableDesc.isMetaTable()) {
connection.getRegionLocator(tableDesc.getTableName()).clearRegionLocationCache();
}
future.complete(Long.valueOf(entries.size()));