hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vjas...@apache.org
Subject [hbase] branch master updated: HBASE-24186: RegionMover ignores replicationId (#1512)
Date Thu, 16 Apr 2020 14:24:03 GMT
This is an automated email from the ASF dual-hosted git repository.

vjasani pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/master by this push:
     new a0ef4cb  HBASE-24186: RegionMover ignores replicationId (#1512)
a0ef4cb is described below

commit a0ef4cb8a2f0e2cc1591ca636979b73542a956db
Author: BukrosSzabolcs <bukros.szabolcs@gmail.com>
AuthorDate: Thu Apr 16 16:23:51 2020 +0200

    HBASE-24186: RegionMover ignores replicationId (#1512)
    
    Signed-off-by: Jan Hentschel <jan.hentschel@ultratendency.com>
    Signed-off-by: Viraj Jasani <vjasani@apache.org>
---
 .../src/main/java/org/apache/hadoop/hbase/util/RegionMover.java        | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/util/RegionMover.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/util/RegionMover.java
index d6ca2af..9c2efd8 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/util/RegionMover.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/util/RegionMover.java
@@ -755,7 +755,8 @@ public class RegionMover extends AbstractHBaseTool implements Closeable
{
       return null;
     }
     HRegionLocation loc =
-      conn.getRegionLocator(region.getTable()).getRegionLocation(region.getStartKey(), true);
+      conn.getRegionLocator(region.getTable()).getRegionLocation(region.getStartKey(),
+        region.getReplicaId(),true);
     if (loc != null) {
       return loc.getServerName();
     } else {


Mime
View raw message