HBASE-15513 hbase.hregion.memstore.chunkpool.maxsize is 0.0 by default (Addendum by Anoop Sam John)
This commit is contained in:
parent
97ce30d47e
commit
e60a7f6e7d
@ -171,8 +171,8 @@ public class TestMemStoreLAB {
|
|||||||
@Test
|
@Test
|
||||||
public void testLABChunkQueue() throws Exception {
|
public void testLABChunkQueue() throws Exception {
|
||||||
HeapMemStoreLAB mslab = new HeapMemStoreLAB();
|
HeapMemStoreLAB mslab = new HeapMemStoreLAB();
|
||||||
// by default setting, there should be no chunk queue initialized
|
// by default setting, there should be no chunks initialized in the pool
|
||||||
assertNull(mslab.getPooledChunks());
|
assertTrue(mslab.getPooledChunks().isEmpty());
|
||||||
// reset mslab with chunk pool
|
// reset mslab with chunk pool
|
||||||
Configuration conf = HBaseConfiguration.create();
|
Configuration conf = HBaseConfiguration.create();
|
||||||
conf.setDouble(MemStoreChunkPool.CHUNK_POOL_MAXSIZE_KEY, 0.1);
|
conf.setDouble(MemStoreChunkPool.CHUNK_POOL_MAXSIZE_KEY, 0.1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user