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:
Lars George 2011-02-03 11:49:02 +00:00
parent d7a63983fc
commit 5bb4725494
2 changed files with 26 additions and 24 deletions

View File

@ -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

View File

@ -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);
}
}