HBASE-501 Empty region server address in info:server entry and a startcode of -1 in .META.
M trunk/src/java/org/apache/hadoop/hbase/util/Sleeper.java M branches/0.1/src/java/org/apache/hadoop/hbase/util/Sleeper.java Improve the log message; last night I saw an instance of this message: i.e. we asked to sleep 3 seconds but we slept > 30 seconds (Default lease timeout between regionserver and master is 30 seconds). . git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@636972 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c1f974bbee
commit
4ea64897fe
|
@ -70,8 +70,10 @@ public class Sleeper {
|
|||
if (waitTime > 0) {
|
||||
try {
|
||||
Thread.sleep(waitTime);
|
||||
if ((System.currentTimeMillis() - now) > (10 * this.period)) {
|
||||
LOG.warn("We slept ten times longer than scheduled: " + this.period);
|
||||
long slept = System.currentTimeMillis() - now;
|
||||
if (slept > (10 * this.period)) {
|
||||
LOG.warn("We slept " + slept + "ms, ten times longer than scheduled: " +
|
||||
this.period);
|
||||
}
|
||||
} catch(InterruptedException iex) {
|
||||
// We we interrupted because we're meant to stop? If not, just
|
||||
|
|
Loading…
Reference in New Issue