HBASE-4197 Added check of scanner against null
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1158084 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4b1b49635a
commit
15fc346077
|
@ -452,8 +452,7 @@ public class HRegionServer implements HRegionInterface, HBaseRPCErrorHandler,
|
||||||
}
|
}
|
||||||
String scannerIdString = Long.toString(scannerId);
|
String scannerIdString = Long.toString(scannerId);
|
||||||
RegionScanner scanner = scanners.get(scannerIdString);
|
RegionScanner scanner = scanners.get(scannerIdString);
|
||||||
HRegionInfo regionName = scanner.getRegionInfo();
|
if (scanner != null && scanner.getRegionInfo().isMetaRegion()) {
|
||||||
if (regionName.isMetaRegion()) {
|
|
||||||
// LOG.debug("High priority scanner request: " + scannerId);
|
// LOG.debug("High priority scanner request: " + scannerId);
|
||||||
return HIGH_QOS;
|
return HIGH_QOS;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue