HBASE-14013 Retry when RegionServerNotYetRunningException rather than go ahead with assign so for sure we don't skip WAL replay
This commit is contained in:
parent
7ffd14986b
commit
71a523a619
|
@ -896,15 +896,15 @@ public class AssignmentManager {
|
||||||
if (t instanceof RemoteException) {
|
if (t instanceof RemoteException) {
|
||||||
t = ((RemoteException)t).unwrapRemoteException();
|
t = ((RemoteException)t).unwrapRemoteException();
|
||||||
}
|
}
|
||||||
if (t instanceof RegionServerAbortedException) {
|
if (t instanceof RegionServerAbortedException
|
||||||
|
|| t instanceof RegionServerStoppedException
|
||||||
|
|| t instanceof ServerNotRunningYetException) {
|
||||||
// RS is aborting, we cannot offline the region since the region may need to do WAL
|
// RS is aborting, we cannot offline the region since the region may need to do WAL
|
||||||
// recovery. Until we see the RS expiration, we should retry.
|
// recovery. Until we see the RS expiration, we should retry.
|
||||||
sleepTime = 1 + conf.getInt(RpcClient.FAILED_SERVER_EXPIRY_KEY,
|
sleepTime = 1 + conf.getInt(RpcClient.FAILED_SERVER_EXPIRY_KEY,
|
||||||
RpcClient.FAILED_SERVER_EXPIRY_DEFAULT);
|
RpcClient.FAILED_SERVER_EXPIRY_DEFAULT);
|
||||||
|
|
||||||
} else if (t instanceof NotServingRegionException
|
} else if (t instanceof NotServingRegionException) {
|
||||||
|| t instanceof RegionServerStoppedException
|
|
||||||
|| t instanceof ServerNotRunningYetException) {
|
|
||||||
LOG.debug("Offline " + region.getRegionNameAsString()
|
LOG.debug("Offline " + region.getRegionNameAsString()
|
||||||
+ ", it's not any more on " + server, t);
|
+ ", it's not any more on " + server, t);
|
||||||
regionStates.updateRegionState(region, State.OFFLINE);
|
regionStates.updateRegionState(region, State.OFFLINE);
|
||||||
|
|
Loading…
Reference in New Issue