[
https://issues.apache.org/jira/browse/HBASE-5304?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13197578#comment-13197578
]
[email protected] commented on HBASE-5304:
------------------------------------------------------
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/3717/
-----------------------------------------------------------
Review request for hbase.
Summary
-------
This patch allows for simple pluggable SplitKeyPolicies. A SplitKeyPolicy
determines the actual to key to be split on after a SplitRequest was issued.
A SplitKeyPolicy can optionally be configured via a Configuration object that
is serialized (as XML) into anb HTableDescriptor (in analogy to the Constraints
feature - some common between the two features is factored out).
DefaultSplitKeyPolicy implements the current logic (which splits along a
store's midKey as determined by HFileReaderV*).
No alternate SplitKeyPolicy is provided as part of this patch.
Some changes to the HBase Shell are included to allow setting arbitrary
HTableDescriptor values.
Jesse Yates and I worked together on the initial version of this patch.
This addresses bug HBASE-5304.
https://issues.apache.org/jira/browse/HBASE-5304
Diffs
-----
http://svn.apache.org/repos/asf/hbase/trunk/src/main/java/org/apache/hadoop/hbase/HConstants.java
1238830
http://svn.apache.org/repos/asf/hbase/trunk/src/main/java/org/apache/hadoop/hbase/constraint/Constraints.java
1238830
http://svn.apache.org/repos/asf/hbase/trunk/src/main/java/org/apache/hadoop/hbase/regionserver/DefaultSplitKeyPolicy.java
PRE-CREATION
http://svn.apache.org/repos/asf/hbase/trunk/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
1238830
http://svn.apache.org/repos/asf/hbase/trunk/src/main/java/org/apache/hadoop/hbase/regionserver/SplitKeyPolicy.java
PRE-CREATION
http://svn.apache.org/repos/asf/hbase/trunk/src/main/java/org/apache/hadoop/hbase/regionserver/SplitRequest.java
1238830
http://svn.apache.org/repos/asf/hbase/trunk/src/main/java/org/apache/hadoop/hbase/util/ConfigurationUtil.java
PRE-CREATION
http://svn.apache.org/repos/asf/hbase/trunk/src/main/ruby/hbase/admin.rb
1238830
Diff: https://reviews.apache.org/r/3717/diff
Testing
-------
Existing tests. No functional changes are introduced with this.
Thanks,
Lars
> Pluggable split key policy
> --------------------------
>
> Key: HBASE-5304
> URL: https://issues.apache.org/jira/browse/HBASE-5304
> Project: HBase
> Issue Type: Improvement
> Components: regionserver
> Reporter: Lars Hofhansl
> Assignee: Lars Hofhansl
> Fix For: 0.94.0
>
> Attachments: 5304.txt
>
>
> We need a way to specify custom policies to determine split keys.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira