HConnection connection = HConnectionManager.getConnection(conf);
boolean success = false;
try {
HRegionInterface rs = connection.getHRegionConnection(server);
rs.closeRegion(region, false);
long timeout = conf.getLong("hbase.hbck.close.timeout", 120000);
long expiration = timeout + System.currentTimeMillis();
while (System.currentTimeMillis() < expiration) {
try {
HRegionInfo rsRegion = rs.getRegionInfo(region.getRegionName());