hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdcry...@apache.org
Subject svn commit: r1096962 - in /hbase/trunk: CHANGES.txt src/main/java/org/apache/hadoop/hbase/master/AssignmentManager.java
Date Tue, 26 Apr 2011 23:23:34 GMT
Author: jdcryans
Date: Tue Apr 26 23:23:34 2011
New Revision: 1096962

URL: http://svn.apache.org/viewvc?rev=1096962&view=rev
Log:
HBASE-3805  Log RegionState that are processed too late in the master

Modified:
    hbase/trunk/CHANGES.txt
    hbase/trunk/src/main/java/org/apache/hadoop/hbase/master/AssignmentManager.java

Modified: hbase/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hbase/trunk/CHANGES.txt?rev=1096962&r1=1096961&r2=1096962&view=diff
==============================================================================
--- hbase/trunk/CHANGES.txt (original)
+++ hbase/trunk/CHANGES.txt Tue Apr 26 23:23:34 2011
@@ -256,6 +256,7 @@ Release 0.90.3 - Unreleased
    HBASE-3795  Remove the "Cache hit for row" message
    HBASE-3580  Remove RS from DeadServer when new instance checks in
    HBASE-2470  Add Scan.setTimeRange() support in Shell (Harsh J Chouraria)
+   HBASE-3805  Log RegionState that are processed too late in the master
 
   TASKS
    HBASE-3748  Add rolling of thrift/rest daemons to graceful_stop.sh script

Modified: hbase/trunk/src/main/java/org/apache/hadoop/hbase/master/AssignmentManager.java
URL: http://svn.apache.org/viewvc/hbase/trunk/src/main/java/org/apache/hadoop/hbase/master/AssignmentManager.java?rev=1096962&r1=1096961&r2=1096962&view=diff
==============================================================================
--- hbase/trunk/src/main/java/org/apache/hadoop/hbase/master/AssignmentManager.java (original)
+++ hbase/trunk/src/main/java/org/apache/hadoop/hbase/master/AssignmentManager.java Tue Apr
26 23:23:34 2011
@@ -368,8 +368,13 @@ public class AssignmentManager extends Z
       }
       String encodedName = HRegionInfo.encodeRegionName(data.getRegionName());
       String prettyPrintedRegionName = HRegionInfo.prettyPrint(encodedName);
+      // Printing if the event was created a long time ago helps debugging
+      boolean lateEvent = data.getStamp() <
+          (System.currentTimeMillis() - 15000);
       LOG.debug("Handling transition=" + data.getEventType() +
-        ", server=" + data.getServerName() + ", region=" + prettyPrintedRegionName);
+        ", server=" + data.getServerName() + ", region=" +
+          prettyPrintedRegionName +
+          (lateEvent? ", which is more than 15 seconds late" : ""));
       RegionState regionState = regionsInTransition.get(encodedName);
       switch (data.getEventType()) {
         case M_ZK_REGION_OFFLINE:



Mime
View raw message