Browse Source

HADOOP-2451 End key is incorrectly assigned in many region splits

git-svn-id: https://svn.apache.org/repos/asf/lucene/hadoop/trunk@605102 13f79535-47bb-0310-9956-ffa450edef68
Jim Kellerman 17 years ago
parent
commit
7b798b2b45

+ 1 - 0
src/contrib/hbase/CHANGES.txt

@@ -84,6 +84,7 @@ Trunk (unreleased changes)
    HADOOP-2430 Master will not shut down if there are no active region servers
    HADOOP-2199 Add tools for going from hregion filename to region name in logs
    HADOOP-2441 Fix build failures in TestHBaseCluster
+   HADOOP-2451 End key is incorrectly assigned in many region splits
    
   IMPROVEMENTS
    HADOOP-2401 Add convenience put method that takes writable

+ 1 - 1
src/contrib/hbase/src/java/org/apache/hadoop/hbase/HRegion.java

@@ -559,7 +559,7 @@ public class HRegion implements HConstants {
         throw new IOException("Cannot split; target file collision at " + dirA);
       }
       HRegionInfo regionBInfo = new HRegionInfo(this.regionInfo.getTableDesc(),
-          midKey, null);
+          midKey, this.regionInfo.getEndKey());
       Path dirB = getSplitRegionDir(splits,
           HRegionInfo.encodeRegionName(regionBInfo.getRegionName()));
       if(this.fs.exists(dirB)) {