HBASE-7006 [MTTR] Improve Region Server Recovery Time - Distributed Log Replay; ADDENDUM

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1483011 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2013-05-15 19:02:06 +00:00
parent a1aa8537a2
commit dc9caa9f46
1 changed files with 2 additions and 2 deletions

View File

@ -200,8 +200,8 @@ public abstract class ServerCallable<T> implements Callable<T> {
// If the server is dead, we need to wait a little before retrying, to give
// a chance to the regions to be
expectedSleep = ConnectionUtils.getPauseTime(pause, tries);
if (expectedSleep < MIN_WAIT_DEAD_SERVER &&
getConnection().isDeadServer(location.getServerName())){
if (expectedSleep < MIN_WAIT_DEAD_SERVER
&& (location == null || getConnection().isDeadServer(location.getServerName()))) {
expectedSleep = ConnectionUtils.addJitter(MIN_WAIT_DEAD_SERVER, 0.10f);
}