Class TestFlushWithThroughputController
java.lang.Object
org.apache.hadoop.hbase.regionserver.throttle.TestFlushWithThroughputController
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static final doubleprivate final byte[]private HBaseTestingUtilityprivate static final org.slf4j.Loggerprivate final byte[]private org.apache.hadoop.hbase.TableNameorg.junit.rules.TestName -
Constructor Summary
Constructors -
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.HStoregetStoreWithName(org.apache.hadoop.hbase.TableName tableName) private voidsetMaxMinThroughputs(long max, long min) voidsetUp()voidtearDown()voidvoidTest the logic for striped store.voidTest the tuning task ofPressureAwareFlushThroughputControllerprivate 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:
Pairof (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
-