HBASE-3495 Shell is failing on subsequent split calls
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1066787 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d7a63983fc
commit
5bb4725494
|
@ -39,6 +39,7 @@ Release 0.91.0 - Unreleased
|
|||
HBASE-3416 For intra-row scanning, the update readers notification resets
|
||||
the query matcher and can lead to incorrect behavior
|
||||
HBASE-3492 NPE while splitting table with empty column family store
|
||||
HBASE-3495 Shell is failing on subsequent split calls
|
||||
|
||||
|
||||
IMPROVEMENTS
|
||||
|
|
|
@ -1094,11 +1094,12 @@ public class HBaseAdmin implements Abortable {
|
|||
for (Pair<HRegionInfo, HServerAddress> pair: pairs) {
|
||||
// May not be a server for a particular row
|
||||
if (pair.getSecond() == null) continue;
|
||||
if (splitPoint != null) {
|
||||
// if a split point given, only split that particular region
|
||||
HRegionInfo r = pair.getFirst();
|
||||
if (!r.containsRow(splitPoint)) continue;
|
||||
}
|
||||
HRegionInfo r = pair.getFirst();
|
||||
// check for parents
|
||||
if (r.isSplitParent()) continue;
|
||||
// if a split point given, only split that particular region
|
||||
if (splitPoint != null && !r.containsRow(splitPoint)) continue;
|
||||
// call out to region server to do split now
|
||||
split(pair.getSecond(), pair.getFirst(), splitPoint);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue