public class TestMemStoreLAB extends Object
Modifier and Type | Class and Description |
---|---|
private static class |
TestMemStoreLAB.AllocRecord |
Modifier and Type | Field and Description |
---|---|
private static byte[] |
cf |
static HBaseClassTestRule |
CLASS_RULE |
private static org.apache.hadoop.conf.Configuration |
conf |
private static byte[] |
q |
private static byte[] |
rk |
Constructor and Description |
---|
TestMemStoreLAB() |
Modifier and Type | Method and Description |
---|---|
private Thread |
getChunkQueueTestThread(org.apache.hadoop.hbase.regionserver.MemStoreLABImpl mslab,
String threadName,
org.apache.hadoop.hbase.Cell cellToCopyInto) |
static void |
setUpBeforeClass() |
static void |
tearDownAfterClass() |
void |
testLABChunkQueue()
Test frequent chunk retirement with chunk pool triggered by lots of threads, making sure
there's no memory leak (HBASE-16195)
|
void |
testLABLargeAllocation() |
void |
testLABRandomAllocation()
Test a bunch of random allocations
|
void |
testLABThreading()
Test allocation from lots of threads, making sure the results don't
overlap in any way
|
public static final HBaseClassTestRule CLASS_RULE
private static final org.apache.hadoop.conf.Configuration conf
private static final byte[] rk
private static final byte[] cf
private static final byte[] q
public TestMemStoreLAB()
public static void setUpBeforeClass() throws Exception
Exception
public static void tearDownAfterClass() throws Exception
Exception
public void testLABRandomAllocation()
public void testLABLargeAllocation()
public void testLABThreading() throws Exception
Exception
public void testLABChunkQueue() throws Exception
Exception
- if any error occurredprivate Thread getChunkQueueTestThread(org.apache.hadoop.hbase.regionserver.MemStoreLABImpl mslab, String threadName, org.apache.hadoop.hbase.Cell cellToCopyInto)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.