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:
parent
806ccf03dd
commit
9498f9baf3
|
@ -638,11 +638,18 @@ public class RegionSplitter {
|
|||
byte[] split = region.getSecond();
|
||||
|
||||
// see if the new split daughter region has come online
|
||||
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;
|
||||
}
|
||||
|
||||
try {
|
||||
// when a daughter region is opened, a compaction is triggered
|
||||
|
|
Loading…
Reference in New Issue