You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Sean Busbey (JIRA)" <ji...@apache.org> on 2014/07/31 16:02:17 UTC

[jira] [Commented] (HBASE-11627) RegionSplitter's rollingSplit terminated with "/ by zero", and the _balancedSplit file was not deleted properly

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

Sean Busbey commented on HBASE-11627:
-------------------------------------

I think this patch will double count the finished splits when splits.verify is true.

Probably better to add a guard to the debug log message that's causing the division, especially since any exception prior to incrementing splitCount will trigger this failure.

> RegionSplitter's rollingSplit terminated with "/ by zero", and the _balancedSplit file was not deleted properly
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: HBASE-11627
>                 URL: https://issues.apache.org/jira/browse/HBASE-11627
>             Project: HBase
>          Issue Type: Bug
>          Components: Admin, util
>    Affects Versions: 0.96.2, 0.98.1
>         Environment: CentOS release 6.4 (Final)   x86_64  && hbase-0.98.1-cdh5.1.0
>            Reporter: louis hust
>            Priority: Critical
>             Fix For: 0.96.2, 0.98.1
>
>         Attachments: HBASE_11627.patch
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> First create a table
> {quote}
> > create 't1', 'f1'
> {quote}
> Then split the table with util:
> {quote}
> > bin/hbase org.apache.hadoop.hbase.util.RegionSplitter -r -o 2 t1 UniformSplit
> {quote}
> *Finally get the following error :*
> {quote}
> 12/11/08 19:21:12 DEBUG util.RegionSplitter: All regions have been successfully split!
> 12/11/08 19:21:12 DEBUG util.RegionSplitter: TOTAL TIME = 30sec
> 12/11/08 19:21:12 DEBUG util.RegionSplitter: Splits = 0
> Exception in thread "main" java.lang.ArithmeticException: / by zero
> 	at org.apache.hadoop.hbase.util.RegionSplitter.rollingSplit(RegionSplitter.java:576)
> 	at org.apache.hadoop.hbase.util.RegionSplitter.main(RegionSplitter.java:349)
> {quote}



--
This message was sent by Atlassian JIRA
(v6.2#6252)