Repository: hbase
Updated Branches:
  refs/heads/master a6081d30f -> 9ac95419d


HBASE-19658: Fixing small problem and enabling test


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/9ac95419
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/9ac95419
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/9ac95419

Branch: refs/heads/master
Commit: 9ac95419dcc55342fc2330d5634f3383a07d04e3
Parents: a6081d3
Author: anastas <[email protected]>
Authored: Tue Jan 2 12:51:20 2018 +0200
Committer: anastas <[email protected]>
Committed: Tue Jan 2 12:51:20 2018 +0200

----------------------------------------------------------------------
 .../regionserver/TestCompactingToCellFlatMapMemStore.java     | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/9ac95419/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestCompactingToCellFlatMapMemStore.java
----------------------------------------------------------------------
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..679ccf9 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
@@ -32,7 +32,6 @@ import org.apache.hadoop.hbase.util.Threads;
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertTrue;
 
-import org.junit.Ignore;
 import org.junit.Test;
 import org.junit.experimental.categories.Category;
 import org.junit.runner.RunWith;
@@ -80,7 +79,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 +738,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 +747,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++) {

Reply via email to