HBASE-21260 The whole balancer plans might be aborted if there are more than one plans to move a same region
Signed-off-by: Duo Zhang <zhangduo@apache.org>
This commit is contained in:
parent
6781918ca8
commit
7d798b3c73
|
@ -1707,7 +1707,14 @@ public class HMaster extends HRegionServer implements MasterServices {
|
|||
for (RegionPlan plan: plans) {
|
||||
LOG.info("balance " + plan);
|
||||
//TODO: bulk assign
|
||||
this.assignmentManager.moveAsync(plan);
|
||||
try {
|
||||
this.assignmentManager.moveAsync(plan);
|
||||
} catch (HBaseIOException hioe) {
|
||||
//should ignore failed plans here, avoiding the whole balance plans be aborted
|
||||
//later calls of balance() can fetch up the failed and skipped plans
|
||||
LOG.warn("Failed balance plan: {}, just skip it", plan, hioe);
|
||||
}
|
||||
//rpCount records balance plans processed, does not care if a plan succeeds
|
||||
rpCount++;
|
||||
|
||||
balanceThrottling(balanceStartTime + rpCount * balanceInterval, maxRegionsInTransition,
|
||||
|
|
Loading…
Reference in New Issue