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

Sean Busbey commented on HBASE-11708:
-------------------------------------

{quote}
+    @Test
+    public void splitCountTest() throws Exception {
+      final Configuration conf = UTIL.getConfiguration();
+      final List<byte[]> expectedBounds = new ArrayList<byte[]>();
+      final byte[] TEST_TABLE = Bytes.toBytes(TABLE_NAME);
+      final byte[] TEST_FAMILY = Bytes.toBytes(CF_NAME);
+
+      UTIL.createTable(TEST_TABLE, TEST_FAMILY);
+
+      expectedBounds.add(ArrayUtils.EMPTY_BYTE_ARRAY);
+      expectedBounds.add(new byte[] {0x7f, (byte)0xff, (byte)0xff, (byte)0xff,
+                         (byte)0xff, (byte)0xff, (byte)0xff, (byte)0xff});
+      expectedBounds.add(ArrayUtils.EMPTY_BYTE_ARRAY);
+
+      conf.setBoolean("split.verify", true);
+      rollingSplitAndVerify(TABLE_NAME, "UniformSplit", expectedBounds);
+    }
+
{quote}
nit: this test method should only be indented 2 spaces instead of 4.

> RegionSplitter incorrectly calculates splitcount
> ------------------------------------------------
>
>                 Key: HBASE-11708
>                 URL: https://issues.apache.org/jira/browse/HBASE-11708
>             Project: HBase
>          Issue Type: Bug
>          Components: Admin, util
>            Reporter: Sean Busbey
>            Priority: Minor
>              Labels: beginner
>         Attachments: 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