/[Apache-SVN]
ViewVC logotype

Revision 1196772


Jump to revision: Previous Next
Author: nspiegelberg
Date: Wed Nov 2 19:24:18 2011 UTC (12 years, 11 months ago)
Changed paths: 3
Log Message:
[jira] [HBASE-4627] Ability to specify a custom start/end to RegionSplitter

Summary:
[HBASE-4627]

added a custom start/end row to RegionSplitter.  Also solved
an off-by-one error because the end row is prefix-inclusive and not
exclusive.

<a href="https://issues.apache.org/jira/browse/HBASE-4489" title="Better key splitting in RegionSplitter"><del>HBASE-4489</del></a> changed the default endKey on HexStringSplit from 7FFF... to FFFF...  While this is correct, existing users of 0.90 RegionSplitter have 7FFF as the end key in their schema and the last region will not split properly under this new code.  We need to let the user specify a custom start/end key range for when situations like this arise.  Optimally, we should also write the start/end key in META so we could figure this out implicitly instead of requiring the user to explicitly specify it.

Test Plan:
 - mvn test -Dtest=TestRegionSplitter

CC: JIRA

Reviewers: DUMMY_REVIEWER

Differential Revision: 39

Changed paths

Path Details
Directoryhbase/trunk/src/main/java/org/apache/hadoop/hbase/util/Bytes.java modified , text changed
Directoryhbase/trunk/src/main/java/org/apache/hadoop/hbase/util/RegionSplitter.java modified , text changed
Directoryhbase/trunk/src/test/java/org/apache/hadoop/hbase/util/TestRegionSplitter.java modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26