HBASE-24186: RegionMover ignores replicationId (#1512)

Signed-off-by: Jan Hentschel <jan.hentschel@ultratendency.com>
Signed-off-by: Viraj Jasani <vjasani@apache.org>
This commit is contained in:
BukrosSzabolcs 2020-04-16 16:23:51 +02:00 committed by Viraj Jasani
parent ca1f7a9499
commit 8498fe7260
No known key found for this signature in database
GPG Key ID: E906DFF511D3E5DB
1 changed files with 2 additions and 1 deletions

View File

@ -732,7 +732,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 {