hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r686309 - in /hadoop/hbase/branches/0.2: CHANGES.txt conf/hbase-default.xml src/java/org/apache/hadoop/hbase/HConstants.java src/java/org/apache/hadoop/hbase/client/HConnectionManager.java
Date Fri, 15 Aug 2008 18:30:17 GMT
Author: stack
Date: Fri Aug 15 11:30:16 2008
New Revision: 686309

URL: http://svn.apache.org/viewvc?rev=686309&view=rev
Log:
HBASE-830 Debugging HCM.locateRegionInMeta is painful

Modified:
    hadoop/hbase/branches/0.2/CHANGES.txt
    hadoop/hbase/branches/0.2/conf/hbase-default.xml
    hadoop/hbase/branches/0.2/src/java/org/apache/hadoop/hbase/HConstants.java
    hadoop/hbase/branches/0.2/src/java/org/apache/hadoop/hbase/client/HConnectionManager.java

Modified: hadoop/hbase/branches/0.2/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/hbase/branches/0.2/CHANGES.txt?rev=686309&r1=686308&r2=686309&view=diff
==============================================================================
--- hadoop/hbase/branches/0.2/CHANGES.txt (original)
+++ hadoop/hbase/branches/0.2/CHANGES.txt Fri Aug 15 11:30:16 2008
@@ -33,6 +33,7 @@
    HBASE-812  Compaction needs little better skip algo (Daniel Leffel via Stack)
    HBASE-806  Change HbaseMapWritable and RowResult to implement SortedMap
               instead of Map (Jonathan Gray via Stack)
+   HBASE-830  Debugging HCM.locateRegionInMeta is painful
 
   NEW FEATURES
   OPTIMIZATIONS

Modified: hadoop/hbase/branches/0.2/conf/hbase-default.xml
URL: http://svn.apache.org/viewvc/hadoop/hbase/branches/0.2/conf/hbase-default.xml?rev=686309&r1=686308&r2=686309&view=diff
==============================================================================
--- hadoop/hbase/branches/0.2/conf/hbase-default.xml (original)
+++ hadoop/hbase/branches/0.2/conf/hbase-default.xml Fri Aug 15 11:30:16 2008
@@ -106,7 +106,7 @@
   </property>
   <property>
     <name>hbase.client.pause</name>
-    <value>10000</value>
+    <value>2000</value>
     <description>General client pause value.  Used mostly as value to wait
     before running a retry of a failed get, region lookup, etc.</description>
   </property>

Modified: hadoop/hbase/branches/0.2/src/java/org/apache/hadoop/hbase/HConstants.java
URL: http://svn.apache.org/viewvc/hadoop/hbase/branches/0.2/src/java/org/apache/hadoop/hbase/HConstants.java?rev=686309&r1=686308&r2=686309&view=diff
==============================================================================
--- hadoop/hbase/branches/0.2/src/java/org/apache/hadoop/hbase/HConstants.java (original)
+++ hadoop/hbase/branches/0.2/src/java/org/apache/hadoop/hbase/HConstants.java Fri Aug 15
11:30:16 2008
@@ -231,5 +231,5 @@
    * This is a retry backoff multiplier table similar to the BSD TCP syn
    * backoff table, a bit more aggressive than simple exponential backoff.
    */ 
-  public static int RETRY_BACKOFF[] = { 1, 1, 1, 1, 2, 4, 8, 16, 32, 64 };
-}
\ No newline at end of file
+  public static int RETRY_BACKOFF[] = { 1, 1, 1, 2, 2, 4, 4, 8, 16, 32 };
+}

Modified: hadoop/hbase/branches/0.2/src/java/org/apache/hadoop/hbase/client/HConnectionManager.java
URL: http://svn.apache.org/viewvc/hadoop/hbase/branches/0.2/src/java/org/apache/hadoop/hbase/client/HConnectionManager.java?rev=686309&r1=686308&r2=686309&view=diff
==============================================================================
--- hadoop/hbase/branches/0.2/src/java/org/apache/hadoop/hbase/client/HConnectionManager.java
(original)
+++ hadoop/hbase/branches/0.2/src/java/org/apache/hadoop/hbase/client/HConnectionManager.java
Fri Aug 15 11:30:16 2008
@@ -163,7 +163,7 @@
             "Unable to find region server interface " + serverClassName, e);
       }
 
-      this.pause = conf.getLong("hbase.client.pause", 10 * 1000);
+      this.pause = conf.getLong("hbase.client.pause", 2 * 1000);
       this.numRetries = conf.getInt("hbase.client.retries.number", 10);
       this.maxRPCAttempts = conf.getInt("hbase.client.rpc.maxattempts", 1);
       
@@ -557,7 +557,9 @@
           }
           if (tries < numRetries - 1) {
             if (LOG.isDebugEnabled()) {
-              LOG.debug("reloading table servers because: " + e.getMessage());
+              LOG.debug("Attempt " + tries + " of " + this.numRetries +
+                " failed with <" + e + ">. Retrying after sleep of " +
+                getPauseTime(tries));
             }
             relocateRegion(parentTable, metaKey);
           } else {



Mime
View raw message