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:
parent
d30d4ef8e7
commit
6b57e77a58
|
@ -150,7 +150,11 @@ public class HBaseFsckRepair {
|
|||
ServerName server, HRegionInfo region) throws IOException, InterruptedException {
|
||||
HConnection connection = admin.getConnection();
|
||||
AdminService.BlockingInterface rs = connection.getAdmin(server);
|
||||
ProtobufUtil.closeRegion(rs, region.getRegionName(), false);
|
||||
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();
|
||||
|
|
Loading…
Reference in New Issue