hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nkey...@apache.org
Subject svn commit: r1504610 - /hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/master/SplitLogManager.java
Date Thu, 18 Jul 2013 19:18:06 GMT
Author: nkeywal
Date: Thu Jul 18 19:18:06 2013
New Revision: 1504610

URL: http://svn.apache.org/r1504610
Log:
HBASE-8985 Not enough logging in SplitLogManager

Modified:
    hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/master/SplitLogManager.java

Modified: hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/master/SplitLogManager.java
URL: http://svn.apache.org/viewvc/hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/master/SplitLogManager.java?rev=1504610&r1=1504609&r2=1504610&view=diff
==============================================================================
--- hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/master/SplitLogManager.java
(original)
+++ hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/master/SplitLogManager.java
Thu Jul 18 19:18:06 2013
@@ -1308,6 +1308,8 @@ public class SplitLogManager extends Zoo
    * 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 Zoo
         }
       }
       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");



Mime
View raw message