From commits-return-93060-archive-asf-public=cust-asf.ponee.io@hbase.apache.org Thu Apr 16 14:24:05 2020 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 0A589180638 for ; Thu, 16 Apr 2020 16:24:04 +0200 (CEST) Received: (qmail 71718 invoked by uid 500); 16 Apr 2020 14:24:04 -0000 Mailing-List: contact commits-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list commits@hbase.apache.org Received: (qmail 71709 invoked by uid 99); 16 Apr 2020 14:24:04 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Apr 2020 14:24:04 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 44B518B6AC; Thu, 16 Apr 2020 14:24:04 +0000 (UTC) Date: Thu, 16 Apr 2020 14:24:03 +0000 To: "commits@hbase.apache.org" Subject: [hbase] branch master updated: HBASE-24186: RegionMover ignores replicationId (#1512) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <158704704346.13143.16178866326357298564@gitbox.apache.org> From: vjasani@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: hbase X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: 24e15c08edd03cd4704f2d7c5bbcfb3e05d8db43 X-Git-Newrev: a0ef4cb8a2f0e2cc1591ca636979b73542a956db X-Git-Rev: a0ef4cb8a2f0e2cc1591ca636979b73542a956db X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated 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 AuthorDate: Thu Apr 16 16:23:51 2020 +0200 HBASE-24186: RegionMover ignores replicationId (#1512) Signed-off-by: Jan Hentschel Signed-off-by: Viraj Jasani --- .../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 {