HBASE-16209 addendum fix region move delay
This commit is contained in:
parent
51c8c1891a
commit
1b303ad75d
|
@ -3412,7 +3412,7 @@ public class AssignmentManager extends ZooKeeperListener {
|
|||
invokeAssign(regionInfo, true);
|
||||
}
|
||||
|
||||
void invokeAssign(HRegionInfo regionInfo, boolean newPlan) {
|
||||
public void invokeAssign(HRegionInfo regionInfo, boolean newPlan) {
|
||||
threadPoolExecutorService.submit(new AssignCallable(this, regionInfo, newPlan));
|
||||
}
|
||||
|
||||
|
@ -4498,8 +4498,10 @@ public class AssignmentManager extends ZooKeeperListener {
|
|||
}
|
||||
|
||||
private class DelayedAssignCallable implements Runnable {
|
||||
Callable callable;
|
||||
public DelayedAssignCallable(Callable callable) {
|
||||
|
||||
Callable<?> callable;
|
||||
|
||||
public DelayedAssignCallable(Callable<?> callable) {
|
||||
this.callable = callable;
|
||||
}
|
||||
|
||||
|
|
|
@ -103,6 +103,6 @@ public class ClosedRegionHandler extends EventHandler implements TotesHRegionInf
|
|||
regionInfo, RegionState.State.CLOSED);
|
||||
// This below has to do w/ online enable/disable of a table
|
||||
assignmentManager.removeClosedRegion(regionInfo);
|
||||
assignmentManager.invokeAssignLaterOnFailure(regionInfo);
|
||||
assignmentManager.invokeAssign(regionInfo, false);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue