Class TestFlushWithThroughputController
java.lang.Object
org.apache.hadoop.hbase.regionserver.throttle.TestFlushWithThroughputController
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static final double
private final byte[]
private HBaseTestingUtil
private static final org.slf4j.Logger
private final byte[]
private org.apache.hadoop.hbase.TableName
org.junit.rules.TestName
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongenerateAndFlushData
(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
void
Test the logic for striped store.void
Test the tuning task ofPressureAwareFlushThroughputController
private long
-
Field Details
-
CLASS_RULE
-
LOG
-
EPSILON
- See Also:
-
hbtu
-
testName
-
tableName
-
family
-
qualifier
-
-
Constructor Details
-
TestFlushWithThroughputController
public TestFlushWithThroughputController()
-
-
Method Details
-
setUp
-
tearDown
- Throws:
Exception
-
getStoreWithName
private org.apache.hadoop.hbase.regionserver.HStore getStoreWithName(org.apache.hadoop.hbase.TableName tableName) -
setMaxMinThroughputs
-
generateAndFlushData
private org.apache.hadoop.hbase.util.Pair<Double,Long> generateAndFlushData(org.apache.hadoop.hbase.client.Table table) throws IOException Writes Puts to the table and flushes few times.- Returns:
Pair
of (throughput, duration).- Throws:
IOException
-
testFlushWithThroughputLimit
- Throws:
Exception
-
testFlushControl
- Throws:
Exception
-
testFlushThroughputTuning
Test the tuning task ofPressureAwareFlushThroughputController
- Throws:
Exception
-
testFlushControlForStripedStore
Test the logic for striped store.- Throws:
Exception
-