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:
parent
554f25b7ab
commit
1fb69ec11a
|
@ -35,6 +35,7 @@ Release 0.3.0 - Unreleased
|
||||||
instead of Map (Jonathan Gray via Stack)
|
instead of Map (Jonathan Gray via Stack)
|
||||||
HBASE-795 More Table operation in TableHandler for REST interface
|
HBASE-795 More Table operation in TableHandler for REST interface
|
||||||
(Sishen Freecity via Stack)
|
(Sishen Freecity via Stack)
|
||||||
|
HBASE-830 Debugging HCM.locateRegionInMeta is painful
|
||||||
|
|
||||||
NEW FEATURES
|
NEW FEATURES
|
||||||
HBASE-787 Postgresql to HBase table replication example (Tim Sell via Stack)
|
HBASE-787 Postgresql to HBase table replication example (Tim Sell via Stack)
|
||||||
|
|
|
@ -106,7 +106,7 @@
|
||||||
</property>
|
</property>
|
||||||
<property>
|
<property>
|
||||||
<name>hbase.client.pause</name>
|
<name>hbase.client.pause</name>
|
||||||
<value>10000</value>
|
<value>2000</value>
|
||||||
<description>General client pause value. Used mostly as value to wait
|
<description>General client pause value. Used mostly as value to wait
|
||||||
before running a retry of a failed get, region lookup, etc.</description>
|
before running a retry of a failed get, region lookup, etc.</description>
|
||||||
</property>
|
</property>
|
||||||
|
|
|
@ -231,5 +231,5 @@ public interface HConstants {
|
||||||
* This is a retry backoff multiplier table similar to the BSD TCP syn
|
* This is a retry backoff multiplier table similar to the BSD TCP syn
|
||||||
* backoff table, a bit more aggressive than simple exponential backoff.
|
* 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 };
|
||||||
}
|
}
|
|
@ -163,7 +163,7 @@ public class HConnectionManager implements HConstants {
|
||||||
"Unable to find region server interface " + serverClassName, e);
|
"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.numRetries = conf.getInt("hbase.client.retries.number", 10);
|
||||||
this.maxRPCAttempts = conf.getInt("hbase.client.rpc.maxattempts", 1);
|
this.maxRPCAttempts = conf.getInt("hbase.client.rpc.maxattempts", 1);
|
||||||
|
|
||||||
|
@ -557,7 +557,9 @@ public class HConnectionManager implements HConstants {
|
||||||
}
|
}
|
||||||
if (tries < numRetries - 1) {
|
if (tries < numRetries - 1) {
|
||||||
if (LOG.isDebugEnabled()) {
|
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);
|
relocateRegion(parentTable, metaKey);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue