HBASE-830 Debugging HCM.locateRegionInMeta is painful

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@686308 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2008-08-15 18:27:37 +00:00
parent 554f25b7ab
commit 1fb69ec11a
4 changed files with 8 additions and 5 deletions

View File

@ -35,6 +35,7 @@ Release 0.3.0 - Unreleased
instead of Map (Jonathan Gray via Stack)
HBASE-795 More Table operation in TableHandler for REST interface
(Sishen Freecity via Stack)
HBASE-830 Debugging HCM.locateRegionInMeta is painful
NEW FEATURES
HBASE-787 Postgresql to HBase table replication example (Tim Sell via Stack)

View File

@ -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>

View File

@ -231,5 +231,5 @@ public interface HConstants {
* 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 };
}
public static int RETRY_BACKOFF[] = { 1, 1, 1, 2, 2, 4, 4, 8, 16, 32 };
}

View File

@ -163,7 +163,7 @@ public class HConnectionManager implements HConstants {
"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 @@ public class HConnectionManager implements HConstants {
}
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 {