From d926ac54352a7c34e4ada74cbb3d64d287277a7d Mon Sep 17 00:00:00 2001 From: anastas Date: Sun, 31 Dec 2017 12:47:53 +0200 Subject: [PATCH] HBASE-19658: Fixing and enabling the test - --- .../hbase/regionserver/TestCompactingToCellFlatMapMemStore.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestCompactingToCellFlatMapMemStore.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestCompactingToCellFlatMapMemStore.java index 1fc7791..8d641f1 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestCompactingToCellFlatMapMemStore.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestCompactingToCellFlatMapMemStore.java @@ -80,7 +80,7 @@ public class TestCompactingToCellFlatMapMemStore extends TestCompactingMemStore // set memstore to do data compaction conf.set(CompactingMemStore.COMPACTING_MEMSTORE_TYPE_KEY, String.valueOf(MemoryCompactionPolicy.EAGER)); - + conf.setDouble(CompactingMemStore.IN_MEMORY_FLUSH_THRESHOLD_FACTOR_KEY, 0.02); this.memstore = new MyCompactingMemStore(conf, CellComparatorImpl.COMPARATOR, store, regionServicesForStores, MemoryCompactionPolicy.EAGER); @@ -739,7 +739,6 @@ public class TestCompactingToCellFlatMapMemStore extends TestCompactingMemStore * testFlatteningToJumboCellChunkMap checks that the process of flattening * into CellChunkMap succeeds, even when such big cells are allocated. */ - @Ignore @Test public void testFlatteningToJumboCellChunkMap() throws IOException { @@ -749,9 +748,10 @@ public class TestCompactingToCellFlatMapMemStore extends TestCompactingMemStore // set memstore to flat into CellChunkMap MemoryCompactionPolicy compactionType = MemoryCompactionPolicy.BASIC; memstore.getConfiguration().set(CompactingMemStore.COMPACTING_MEMSTORE_TYPE_KEY, - String.valueOf(compactionType)); + String.valueOf(compactionType)); ((MyCompactingMemStore)memstore).initiateType(compactionType, memstore.getConfiguration()); ((CompactingMemStore)memstore).setIndexType(CompactingMemStore.IndexType.CHUNK_MAP); + int numOfCells = 1; char[] chars = new char[MemStoreLAB.CHUNK_SIZE_DEFAULT]; for (int i = 0; i < chars.length; i++) { -- 1.8.5.2 (Apple Git-48)