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:
parent
b4f585e6a3
commit
802d7c8674
|
@ -2430,9 +2430,10 @@ public class HRegionServer implements HRegionInterface, HBaseRPCErrorHandler,
|
||||||
}
|
}
|
||||||
|
|
||||||
public void leaseExpired() {
|
public void leaseExpired() {
|
||||||
LOG.info("Scanner " + this.scannerName + " lease expired");
|
|
||||||
RegionScanner s = scanners.remove(this.scannerName);
|
RegionScanner s = scanners.remove(this.scannerName);
|
||||||
if (s != null) {
|
if (s != null) {
|
||||||
|
LOG.info("Scanner " + this.scannerName + " lease expired on region "
|
||||||
|
+ s.getRegionInfo().getRegionNameAsString());
|
||||||
try {
|
try {
|
||||||
HRegion region = getRegion(s.getRegionInfo().getRegionName());
|
HRegion region = getRegion(s.getRegionInfo().getRegionName());
|
||||||
if (region != null && region.getCoprocessorHost() != null) {
|
if (region != null && region.getCoprocessorHost() != null) {
|
||||||
|
@ -2447,6 +2448,8 @@ public class HRegionServer implements HRegionInterface, HBaseRPCErrorHandler,
|
||||||
LOG.error("Closing scanner for "
|
LOG.error("Closing scanner for "
|
||||||
+ s.getRegionInfo().getRegionNameAsString(), e);
|
+ s.getRegionInfo().getRegionNameAsString(), e);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
LOG.info("Scanner " + this.scannerName + " lease expired");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue