hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r909581 - in /hadoop/hbase/trunk: CHANGES.txt src/java/org/apache/hadoop/hbase/client/HConnectionManager.java
Date Fri, 12 Feb 2010 19:50:57 GMT
Author: stack
Date: Fri Feb 12 19:50:56 2010
New Revision: 909581

URL: http://svn.apache.org/viewvc?rev=909581&view=rev
Log:
HBASE-2222 Improve log "Trying to contact region server Some server for region , row ip_info_100,,1263329969690,
but failed after 11 attempts.

Modified:
    hadoop/hbase/trunk/CHANGES.txt
    hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/client/HConnectionManager.java

Modified: hadoop/hbase/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/CHANGES.txt?rev=909581&r1=909580&r2=909581&view=diff
==============================================================================
--- hadoop/hbase/trunk/CHANGES.txt (original)
+++ hadoop/hbase/trunk/CHANGES.txt Fri Feb 12 19:50:56 2010
@@ -359,6 +359,9 @@
                (Kay Kay via Stack)
    HBASE-2177  Add timestamping to gc logging option
    HBASE-2066  Perf: parallelize puts
+   HBASE-2222  Improve log "Trying to contact region server Some server for
+               region, row 'ip_info_100,,1263329969690', but failed after
+               11 attempts".
 
   NEW FEATURES
    HBASE-1961  HBase EC2 scripts

Modified: hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/client/HConnectionManager.java
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/client/HConnectionManager.java?rev=909581&r1=909580&r2=909581&view=diff
==============================================================================
--- hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/client/HConnectionManager.java (original)
+++ hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/client/HConnectionManager.java Fri
Feb 12 19:50:56 2010
@@ -49,8 +49,6 @@
 import org.apache.hadoop.hbase.MasterNotRunningException;
 import org.apache.hadoop.hbase.RemoteExceptionHandler;
 import org.apache.hadoop.hbase.TableNotFoundException;
-import org.apache.hadoop.hbase.NotServingRegionException;
-import org.apache.hadoop.hbase.regionserver.WrongRegionException;
 import org.apache.hadoop.hbase.client.MetaScanner.MetaScannerVisitor;
 import org.apache.hadoop.hbase.ipc.HBaseRPC;
 import org.apache.hadoop.hbase.ipc.HBaseRPCProtocolVersion;
@@ -1096,8 +1094,8 @@
     }
 
     private HRegionLocation
-    getRegionLocationForRowWithRetries(byte[] tableName, byte[] rowKey, 
-      boolean reload)
+      getRegionLocationForRowWithRetries(byte[] tableName, byte[] rowKey,
+        boolean reload)
     throws IOException {
       boolean reloadFlag = reload;
       List<Throwable> exceptions = new ArrayList<Throwable>();
@@ -1121,7 +1119,9 @@
         }
       }
       if (location == null) {
-        throw new RetriesExhaustedException("Some server",
+        throw new RetriesExhaustedException(" -- nothing found, no 'location' returned,"
+
+          " tableName=" + Bytes.toString(tableName) +
+          ", reload=" + reload + " --",
           HConstants.EMPTY_BYTE_ARRAY, rowKey, tries, exceptions);
       }
       return location;



Mime
View raw message