public class TestFlushWithThroughputController extends Object
| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static double |
EPSILON |
private byte[] |
family |
private HBaseTestingUtility |
hbtu |
private static org.slf4j.Logger |
LOG |
private byte[] |
qualifier |
private org.apache.hadoop.hbase.TableName |
tableName |
org.junit.rules.TestName |
testName |
| Constructor and Description |
|---|
TestFlushWithThroughputController() |
| Modifier and Type | Method and Description |
|---|---|
private org.apache.hadoop.hbase.util.Pair<Double,Long> |
generateAndFlushData(org.apache.hadoop.hbase.client.Table table)
Writes Puts to the table and flushes few times.
|
private org.apache.hadoop.hbase.regionserver.HStore |
getStoreWithName(org.apache.hadoop.hbase.TableName tableName) |
private void |
setMaxMinThroughputs(long max,
long min) |
void |
setUp() |
void |
tearDown() |
void |
testFlushControl() |
void |
testFlushControlForStripedStore()
Test the logic for striped store.
|
void |
testFlushThroughputTuning()
Test the tuning task of
PressureAwareFlushThroughputController |
private long |
testFlushWithThroughputLimit() |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final double EPSILON
private HBaseTestingUtility hbtu
public org.junit.rules.TestName testName
private org.apache.hadoop.hbase.TableName tableName
private final byte[] family
private final byte[] qualifier
public TestFlushWithThroughputController()
public void setUp()
private org.apache.hadoop.hbase.regionserver.HStore getStoreWithName(org.apache.hadoop.hbase.TableName tableName)
private void setMaxMinThroughputs(long max, long min)
private org.apache.hadoop.hbase.util.Pair<Double,Long> generateAndFlushData(org.apache.hadoop.hbase.client.Table table) throws IOException
Pair of (throughput, duration).IOExceptionprivate long testFlushWithThroughputLimit() throws Exception
Exceptionpublic void testFlushControl() throws Exception
Exceptionpublic void testFlushThroughputTuning() throws Exception
PressureAwareFlushThroughputControllerExceptionpublic void testFlushControlForStripedStore() throws Exception
ExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.