HBASE-25554 NPE when init RegionMover (#2927)

Signed-off-by: Viraj Jasani <vjasani@apache.org>
This commit is contained in:
Baiqiang Zhao 2021-02-05 16:31:53 +08:00 committed by GitHub
parent 7905749733
commit 304379605a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -87,7 +87,6 @@ public class RegionMover extends AbstractHBaseTool implements Closeable {
public static final int DEFAULT_MOVE_RETRIES_MAX = 5;
public static final int DEFAULT_MOVE_WAIT_MAX = 60;
public static final int DEFAULT_SERVERSTART_WAIT_MAX = 180;
private final RackManager rackManager;
private static final Logger LOG = LoggerFactory.getLogger(RegionMover.class);
@ -103,6 +102,7 @@ public class RegionMover extends AbstractHBaseTool implements Closeable {
private int port;
private Connection conn;
private Admin admin;
private RackManager rackManager;
private RegionMover(RegionMoverBuilder builder) throws IOException {
this.hostname = builder.hostname;
@ -125,7 +125,6 @@ public class RegionMover extends AbstractHBaseTool implements Closeable {
}
private RegionMover() {
rackManager = new RackManager(conf);
}
@Override