You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by hu...@apache.org on 2020/11/10 01:44:27 UTC
[hbase] branch HBASE-18070 updated: HBASE-25126 Add load balance
logic in hbase-client to distribute read load over meta replica regions
(addendum)
This is an automated email from the ASF dual-hosted git repository.
huaxiangsun pushed a commit to branch HBASE-18070
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/HBASE-18070 by this push:
new db6d815 HBASE-25126 Add load balance logic in hbase-client to distribute read load over meta replica regions (addendum)
db6d815 is described below
commit db6d815df196c9666a6ce423527759798abfae3a
Author: Huaxiang Sun <hu...@apache.com>
AuthorDate: Mon Nov 9 10:29:50 2020 -0800
HBASE-25126 Add load balance logic in hbase-client to distribute read load over meta replica regions (addendum)
---
.../replication/regionserver/RegionReplicaReplicationEndpoint.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/RegionReplicaReplicationEndpoint.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/RegionReplicaReplicationEndpoint.java
index f8eca6c..17e7a53 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/RegionReplicaReplicationEndpoint.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/RegionReplicaReplicationEndpoint.java
@@ -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()));