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

louis hust commented on HBASE-11708:
------------------------------------

After create 't1','f1'
I run the following command:
bin/hbase org.apache.hadoop.hbase.util.RegionSplitter -r -o 2 t1 UniformSplit

The behaviour is different before and after the patch:

Before this patch:
2014-08-12 11:38:39,932 DEBUG [main] util.RegionSplitter: Split Scan: 0 
finished / 1 split wait / 0 reference wait
2014-08-12 11:38:44,977 DEBUG [main] util.RegionSplitter: Split Scan: 1 
finished / 0 split wait / 0 reference wait
2014-08-12 11:38:44,977 DEBUG [main] util.RegionSplitter: All regions have been 
successfully split!
2014-08-12 11:38:44,977 DEBUG [main] util.RegionSplitter: TOTAL TIME = 30sec
{color:red}
2014-08-12 11:38:44,977 DEBUG [main] util.RegionSplitter: Splits = 0
{color}
2014-08-12 11:38:44,977 DEBUG [main] util.RegionSplitter: Avg Time / Split = 
30sec


After this patch:
2014-08-12 11:35:08,214 DEBUG [main] util.RegionSplitter: Split Scan: 0 
finished / 1 split wait / 0 reference wait
2014-08-12 11:35:13,250 DEBUG [main] util.RegionSplitter: Split Scan: 1 
finished / 0 split wait / 0 reference wait
2014-08-12 11:35:13,250 DEBUG [main] util.RegionSplitter: All regions have been 
successfully split!
2014-08-12 11:35:13,250 DEBUG [main] util.RegionSplitter: TOTAL TIME = 30sec
{color:red}
2014-08-12 11:35:13,250 DEBUG [main] util.RegionSplitter: Splits = 1
{color}
2014-08-12 11:35:13,250 DEBUG [main] util.RegionSplitter: Avg Time / Split = 
30sec


> RegionSplitter incorrectly calculates splitcount
> ------------------------------------------------
>
>                 Key: HBASE-11708
>                 URL: https://issues.apache.org/jira/browse/HBASE-11708
>             Project: HBase
>          Issue Type: Bug
>          Components: Admin, util
>    Affects Versions: 0.96.2, 0.98.1
>            Reporter: Sean Busbey
>            Assignee: louis hust
>            Priority: Minor
>              Labels: beginner
>         Attachments: HBASE_11708-v2.patch, HBASE_11708-v3.patch, 
> HBASE_11708.patch
>
>
> From discussion on HBASE-11627:
> {quote}
> And I also find another bug about the caculation of the variable splitCount 
> which is cause by the wrong caculation of variable finished.
> {quote}



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

Reply via email to