HBASE-3850 Log more details when a scanner lease expires (Darren Haas)

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1241667 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Zhihong Yu 2012-02-07 22:23:45 +00:00
parent b4f585e6a3
commit 802d7c8674
1 changed files with 4 additions and 1 deletions

View File

@ -2430,9 +2430,10 @@ public class HRegionServer implements HRegionInterface, HBaseRPCErrorHandler,
}
public void leaseExpired() {
LOG.info("Scanner " + this.scannerName + " lease expired");
RegionScanner s = scanners.remove(this.scannerName);
if (s != null) {
LOG.info("Scanner " + this.scannerName + " lease expired on region "
+ s.getRegionInfo().getRegionNameAsString());
try {
HRegion region = getRegion(s.getRegionInfo().getRegionName());
if (region != null && region.getCoprocessorHost() != null) {
@ -2447,6 +2448,8 @@ public class HRegionServer implements HRegionInterface, HBaseRPCErrorHandler,
LOG.error("Closing scanner for "
+ s.getRegionInfo().getRegionNameAsString(), e);
}
} else {
LOG.info("Scanner " + this.scannerName + " lease expired");
}
}
}