HBASE-4860 RegionSplitter Should Allow NSFRE during logical split verification

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1210699 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Nicolas Spiegelberg 2011-12-05 23:14:31 +00:00
parent 806ccf03dd
commit 9498f9baf3
1 changed files with 9 additions and 2 deletions

View File

@ -638,8 +638,15 @@ public class RegionSplitter {
byte[] split = region.getSecond();
// see if the new split daughter region has come online
HRegionInfo dri = table.getRegionLocation(split).getRegionInfo();
if (dri.isOffline() || !Bytes.equals(dri.getStartKey(), split)) {
try {
HRegionInfo dri = table.getRegionLocation(split).getRegionInfo();
if (dri.isOffline() || !Bytes.equals(dri.getStartKey(), split)) {
logicalSplitting.add(region);
continue;
}
} catch (NoServerForRegionException nsfre) {
// NSFRE will occur if the old META entry has no server assigned
LOG.info(nsfre);
logicalSplitting.add(region);
continue;
}