HBASE-3388 NPE processRegionInTransition(AssignmentManager.java:264) doing rolling-restart.sh
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1052058 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
bfe27f5764
commit
1758553f45
|
@ -803,6 +803,8 @@ Release 0.90.0 - Unreleased
|
|||
HBASE-3343 Server not shutting down after losing log lease
|
||||
HBASE-3381 Interrupt of a region open comes across as a successful open
|
||||
HBASE-3386 NPE in TableRecordReaderImpl.restart
|
||||
HBASE-3388 NPE processRegionInTransition(AssignmentManager.java:264)
|
||||
doing rolling-restart.sh
|
||||
|
||||
|
||||
IMPROVEMENTS
|
||||
|
|
|
@ -261,8 +261,13 @@ public class AssignmentManager extends ZooKeeperListener {
|
|||
throws KeeperException, IOException {
|
||||
RegionTransitionData data = ZKAssign.getData(watcher, encodedRegionName);
|
||||
if (data == null) return false;
|
||||
HRegionInfo hri = (regionInfo != null)? regionInfo:
|
||||
MetaReader.getRegion(catalogTracker, data.getRegionName()).getFirst();
|
||||
HRegionInfo hri = regionInfo;
|
||||
if (hri == null) {
|
||||
Pair<HRegionInfo, HServerAddress> p =
|
||||
MetaReader.getRegion(catalogTracker, data.getRegionName());
|
||||
if (p == null) return false;
|
||||
hri = p.getFirst();
|
||||
}
|
||||
processRegionsInTransition(data, hri);
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue