diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/mapreduce/TestLoadIncrementalHFiles.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/mapreduce/TestLoadIncrementalHFiles.java index fd146c4..69329f1 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/mapreduce/TestLoadIncrementalHFiles.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/mapreduce/TestLoadIncrementalHFiles.java @@ -189,6 +189,28 @@ public class TestLoadIncrementalHFiles { testRegionCrossingHFileSplit(BloomType.ROWCOL); } + @Test + public void testSplitALot() throws Exception { + runTest("testHFileSplitTon", BloomType.NONE, + new byte[][] { + Bytes.toBytes("aaaa"), Bytes.toBytes("bbb"), + Bytes.toBytes("ccc"), Bytes.toBytes("ddd"), + Bytes.toBytes("eee"), Bytes.toBytes("fff"), + Bytes.toBytes("ggg"), Bytes.toBytes("hhh"), + Bytes.toBytes("iii"), Bytes.toBytes("lll"), + Bytes.toBytes("mmm"), Bytes.toBytes("nnn"), + Bytes.toBytes("ooo"), Bytes.toBytes("ppp"), + Bytes.toBytes("qqq"), Bytes.toBytes("rrr"), + Bytes.toBytes("sss"), Bytes.toBytes("ttt"), + Bytes.toBytes("uuu"), Bytes.toBytes("vvv"), + Bytes.toBytes("zzz"), + }, + new byte[][][] { + new byte[][] { Bytes.toBytes("aaaa"), Bytes.toBytes("zzz") }, + } + ); + } + private void testRegionCrossingHFileSplit(BloomType bloomType) throws Exception { runTest("testHFileSplit" + bloomType + "Bloom", bloomType, new byte[][] {