public class TestMasterRegionFlush extends Object
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private org.apache.hadoop.conf.Configuration |
conf |
private AtomicInteger |
flushCalled |
private org.apache.hadoop.hbase.master.region.MasterRegionFlusherAndCompactor |
flusher |
private AtomicLong |
memstoreHeapSize |
private AtomicLong |
memstoreOffHeapSize |
private org.apache.hadoop.hbase.regionserver.HRegion |
region |
Constructor and Description |
---|
TestMasterRegionFlush() |
Modifier and Type | Method and Description |
---|---|
private void |
assertTriggerFlushByChanges(int changes) |
private void |
initFlusher(long flushSize,
long flushPerChanges,
long flushIntervalMs) |
void |
setUp() |
void |
tearDown() |
void |
testPeriodicalFlush() |
void |
testTriggerFlushByChanges() |
void |
testTriggerFlushBySize() |
public static final HBaseClassTestRule CLASS_RULE
private org.apache.hadoop.conf.Configuration conf
private org.apache.hadoop.hbase.regionserver.HRegion region
private org.apache.hadoop.hbase.master.region.MasterRegionFlusherAndCompactor flusher
private AtomicInteger flushCalled
private AtomicLong memstoreHeapSize
private AtomicLong memstoreOffHeapSize
public TestMasterRegionFlush()
public void setUp() throws IOException
IOException
public void tearDown()
private void initFlusher(long flushSize, long flushPerChanges, long flushIntervalMs)
public void testTriggerFlushBySize() throws IOException, InterruptedException
IOException
InterruptedException
private void assertTriggerFlushByChanges(int changes) throws InterruptedException
InterruptedException
public void testTriggerFlushByChanges() throws InterruptedException
InterruptedException
public void testPeriodicalFlush() throws InterruptedException
InterruptedException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.