HBASE-19658: Fixing small problem and enabling test
This commit is contained in:
parent
0dcbba1563
commit
488797f4bb
|
@ -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);
|
||||
|
@ -741,7 +740,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 {
|
||||
|
||||
|
@ -754,6 +752,7 @@ public class TestCompactingToCellFlatMapMemStore extends TestCompactingMemStore
|
|||
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++) {
|
||||
|
|
Loading…
Reference in New Issue