HBASE-5835 [hbck] Catch and handle NotServingRegionException when close region attempt fails

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1479240 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2013-05-05 05:41:44 +00:00
parent d30d4ef8e7
commit 6b57e77a58
1 changed files with 5 additions and 1 deletions

View File

@ -150,7 +150,11 @@ public class HBaseFsckRepair {
ServerName server, HRegionInfo region) throws IOException, InterruptedException {
HConnection connection = admin.getConnection();
AdminService.BlockingInterface rs = connection.getAdmin(server);
try {
ProtobufUtil.closeRegion(rs, region.getRegionName(), false);
} catch (IOException e) {
LOG.warn("Exception when closing region: " + region.getRegionNameAsString(), e);
}
long timeout = admin.getConfiguration()
.getLong("hbase.hbck.close.timeout", 120000);
long expiration = timeout + System.currentTimeMillis();