HBASE-22325 AsyncRpcRetryingCaller will not schedule retry if we hit a NotServingRegionException but there is no TableName provided
This commit is contained in:
parent
f9f6354393
commit
3f40df8085
|
@ -126,7 +126,7 @@ public abstract class AsyncRpcRetryingCaller<T> {
|
|||
resetController(controller, callTimeoutNs, priority);
|
||||
}
|
||||
|
||||
private void tryScheduleRetry(Throwable error, Consumer<Throwable> updateCachedLocation) {
|
||||
private void tryScheduleRetry(Throwable error) {
|
||||
long pauseNsToUse = error instanceof CallQueueTooBigException ? pauseForCQTBENs : pauseNs;
|
||||
long delayNs;
|
||||
if (operationTimeoutNs > 0) {
|
||||
|
@ -192,19 +192,21 @@ public abstract class AsyncRpcRetryingCaller<T> {
|
|||
future.completeExceptionally(e);
|
||||
} else {
|
||||
// failed to test whether the table is disabled, not a big deal, continue retrying
|
||||
tryScheduleRetry(error, updateCachedLocation);
|
||||
tryScheduleRetry(error);
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (disabled) {
|
||||
future.completeExceptionally(new TableNotEnabledException(tableName.get()));
|
||||
} else {
|
||||
tryScheduleRetry(error, updateCachedLocation);
|
||||
tryScheduleRetry(error);
|
||||
}
|
||||
});
|
||||
} else {
|
||||
tryScheduleRetry(error);
|
||||
}
|
||||
} else {
|
||||
tryScheduleRetry(error, updateCachedLocation);
|
||||
tryScheduleRetry(error);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue