HBASE-3666 TestScannerTimeout fails occasionally

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1085123 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2011-03-24 20:40:13 +00:00
parent b500e86e2d
commit 15cc58f797
2 changed files with 7 additions and 1 deletions

View File

@ -173,6 +173,7 @@ Release 0.90.2 - Unreleased
such as -ROOT- or .META.
HBASE-3654 Weird blocking between getOnlineRegion and createRegionLoad
(Subbu M Iyer via Stack)
HBASE-3666 TestScannerTimeout fails occasionally
IMPROVEMENTS
HBASE-3542 MultiGet methods in Thrift

View File

@ -1906,7 +1906,12 @@ public class HRegionServer implements HRegionInterface, HBaseRPCErrorHandler,
} catch (IOException e) {
// If checkOpen failed, server not running or filesystem gone,
// cancel this lease; filesystem is gone or we're closing or something.
this.leases.cancelLease(scannerName);
try {
this.leases.cancelLease(scannerName);
} catch (LeaseException le) {
LOG.info("Server shutting down and client tried to access missing scanner " +
scannerName);
}
throw e;
}
this.leases.renewLease(scannerName);