From 521f17f275782f480835145d744a369bcb5f132b Mon Sep 17 00:00:00 2001 From: nkeywal Date: Thu, 18 Jul 2013 19:18:06 +0000 Subject: [PATCH] HBASE-8985 Not enough logging in SplitLogManager git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1504610 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/hadoop/hbase/master/SplitLogManager.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/SplitLogManager.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/SplitLogManager.java index 2dd36122e63..4e1c153e640 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/SplitLogManager.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/SplitLogManager.java @@ -1308,6 +1308,8 @@ public class SplitLogManager extends ZooKeeperListener { * out */ private class TimeoutMonitor extends Chore { + private long lastLog = 0; + public TimeoutMonitor(final int period, Stoppable stopper) { super("SplitLogManager Timeout Monitor", period, stopper); } @@ -1354,7 +1356,11 @@ public class SplitLogManager extends ZooKeeperListener { } } if (tot > 0) { - LOG.debug("total tasks = " + tot + " unassigned = " + unassigned); + long now = EnvironmentEdgeManager.currentTimeMillis(); + if (now > lastLog + 5000) { + lastLog = now; + LOG.info("total tasks = " + tot + " unassigned = " + unassigned + " tasks=" + tasks); + } } if (resubmitted > 0) { LOG.info("resubmitted " + resubmitted + " out of " + tot + " tasks");