HBASE-8985 Not enough logging in SplitLogManager

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1504610 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
nkeywal 2013-07-18 19:18:06 +00:00
parent 0632023c14
commit 521f17f275
1 changed files with 7 additions and 1 deletions

View File

@ -1308,6 +1308,8 @@ public class SplitLogManager extends ZooKeeperListener {
* out * out
*/ */
private class TimeoutMonitor extends Chore { private class TimeoutMonitor extends Chore {
private long lastLog = 0;
public TimeoutMonitor(final int period, Stoppable stopper) { public TimeoutMonitor(final int period, Stoppable stopper) {
super("SplitLogManager Timeout Monitor", period, stopper); super("SplitLogManager Timeout Monitor", period, stopper);
} }
@ -1354,7 +1356,11 @@ public class SplitLogManager extends ZooKeeperListener {
} }
} }
if (tot > 0) { 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) { if (resubmitted > 0) {
LOG.info("resubmitted " + resubmitted + " out of " + tot + " tasks"); LOG.info("resubmitted " + resubmitted + " out of " + tot + " tasks");