HBASE-3805 Log RegionState that are processed too late in the master

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1096962 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jean-Daniel Cryans 2011-04-26 23:23:34 +00:00
parent df94fbe4f8
commit 2769a5ffc8
2 changed files with 7 additions and 1 deletions

View File

@ -256,6 +256,7 @@ Release 0.90.3 - Unreleased
HBASE-3795 Remove the "Cache hit for row" message HBASE-3795 Remove the "Cache hit for row" message
HBASE-3580 Remove RS from DeadServer when new instance checks in HBASE-3580 Remove RS from DeadServer when new instance checks in
HBASE-2470 Add Scan.setTimeRange() support in Shell (Harsh J Chouraria) HBASE-2470 Add Scan.setTimeRange() support in Shell (Harsh J Chouraria)
HBASE-3805 Log RegionState that are processed too late in the master
TASKS TASKS
HBASE-3748 Add rolling of thrift/rest daemons to graceful_stop.sh script HBASE-3748 Add rolling of thrift/rest daemons to graceful_stop.sh script

View File

@ -368,8 +368,13 @@ public class AssignmentManager extends ZooKeeperListener {
} }
String encodedName = HRegionInfo.encodeRegionName(data.getRegionName()); String encodedName = HRegionInfo.encodeRegionName(data.getRegionName());
String prettyPrintedRegionName = HRegionInfo.prettyPrint(encodedName); 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() + 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); RegionState regionState = regionsInTransition.get(encodedName);
switch (data.getEventType()) { switch (data.getEventType()) {
case M_ZK_REGION_OFFLINE: case M_ZK_REGION_OFFLINE: