[ 
https://issues.apache.org/jira/browse/HBASE-7876?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13588168#comment-13588168
 ] 

clockfly commented on HBASE-7876:
---------------------------------

ramakrishna, may be this patch don't conflict with your use case.

Splitting a empty region will only happen when one of the two conditions is met:
1. Force manual split by specifiying a midkey.
2. Write a customized SplitPolicy.

For condition 2, it is the customized splitpolicy's choice.
For condition 1, if the application don't want to split a empty region, the 
application should check whether the region is empty by running a small scan.

If the admin don't specify a midkey, for a empty region, the default split 
policy RegionSplitPolicy:shouldSplit() will always return false, and split will 
never happen.
                
> Got exception when manually triggers a split on an empty region
> ---------------------------------------------------------------
>
>                 Key: HBASE-7876
>                 URL: https://issues.apache.org/jira/browse/HBASE-7876
>             Project: HBase
>          Issue Type: Bug
>          Components: regionserver
>    Affects Versions: 0.94.5
>            Reporter: Maryann Xue
>            Assignee: Maryann Xue
>            Priority: Minor
>         Attachments: HBASE-7876-0.94.patch
>
>
> We should allow a region to split successfully even if it does not yet have 
> storefiles.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to