HBASE-6029 HBCK doesn't recover Balance switch if exception occurs in onlineHbck() (Maryann)
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1339689 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
aa5ce08ff1
commit
cdbaa02276
|
@ -383,10 +383,12 @@ public class HBaseFsck {
|
|||
|
||||
// turn the balancer off
|
||||
boolean oldBalancer = admin.balanceSwitch(false);
|
||||
|
||||
onlineConsistencyRepair();
|
||||
|
||||
admin.balanceSwitch(oldBalancer);
|
||||
try {
|
||||
onlineConsistencyRepair();
|
||||
}
|
||||
finally {
|
||||
admin.balanceSwitch(oldBalancer);
|
||||
}
|
||||
|
||||
// Print table summary
|
||||
printTableSummary(tablesInfo);
|
||||
|
|
Loading…
Reference in New Issue