hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r1483011 - /hbase/trunk/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ServerCallable.java
Date Wed, 15 May 2013 19:02:06 GMT
Author: stack
Date: Wed May 15 19:02:06 2013
New Revision: 1483011

URL: http://svn.apache.org/r1483011
Log:
HBASE-7006 [MTTR] Improve Region Server Recovery Time - Distributed Log Replay; ADDENDUM

Modified:
    hbase/trunk/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ServerCallable.java

Modified: hbase/trunk/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ServerCallable.java
URL: http://svn.apache.org/viewvc/hbase/trunk/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ServerCallable.java?rev=1483011&r1=1483010&r2=1483011&view=diff
==============================================================================
--- hbase/trunk/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ServerCallable.java
(original)
+++ hbase/trunk/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ServerCallable.java
Wed May 15 19:02:06 2013
@@ -200,8 +200,8 @@ public abstract class ServerCallable<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);
         }
 



Mime
View raw message