Class TestRegionServerMetrics
java.lang.Object
org.apache.hadoop.hbase.regionserver.TestRegionServerMetrics
@Tag("org.apache.hadoop.hbase.testclassification.RegionServerTests") @Tag("org.apache.hadoop.hbase.testclassification.LargeTests")
public class TestRegionServerMetrics
extends Object
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static org.apache.hadoop.hbase.client.Adminprivate static byte[]private static SingleProcessHBaseClusterprivate static org.apache.hadoop.conf.Configurationprivate static org.apache.hadoop.hbase.client.Connectionprivate static final org.slf4j.Loggerprivate static MetricsAssertHelperprivate static org.apache.hadoop.hbase.regionserver.MetricsRegionServerprivate static final intprivate static intprivate static byte[]private static byte[]private static org.apache.hadoop.hbase.regionserver.HRegionServerprivate static org.apache.hadoop.hbase.regionserver.MetricsRegionServerSource(package private) org.apache.hadoop.hbase.client.Table(package private) org.apache.hadoop.hbase.TableNameprivate static HBaseTestingUtilprivate static byte[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidafter()voidprivate voidassertCounter(String metric, long expectedValue) private voidassertGauge(String metric, long expectedValue) private voidassertRegionMetrics(String metric, long expectedValue) voidbeforeTestMethod(org.junit.jupiter.api.TestInfo testInfo) private voiddoNGets(int n, boolean batch) private voiddoNPuts(int n, boolean batch) private voiddoScan(int n, boolean caching) private static org.apache.hadoop.hbase.regionserver.RegionsetMobThreshold(org.apache.hadoop.hbase.regionserver.Region region, byte[] cfName, long modThreshold) static voidvoidvoidvoidvoidtestGet()voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoid
-
Field Details
-
Constructor Details
-
TestRegionServerMetrics
public TestRegionServerMetrics()
-
-
Method Details
-
startCluster
- Throws:
Exception
-
after
- Throws:
Exception
-
beforeTestMethod
- Throws:
Exception
-
afterTestMethod
- Throws:
Exception
-
assertCounter
-
assertGauge
-
assertRegionMetrics
- Throws:
Exception
-
doNPuts
- Throws:
Exception
-
doNGets
- Throws:
Exception
-
doScan
- Throws:
IOException
-
testRegionCount
- Throws:
Exception
-
testLocalFiles
- Throws:
Exception
-
testRequestCount
- Throws:
Exception
-
testGet
- Throws:
Exception
-
testMutationsWithoutWal
- Throws:
Exception
-
testStoreCount
- Throws:
Exception
-
testStoreFileAge
- Throws:
Exception
-
testCheckAndPutCount
- Throws:
Exception
-
testIncrement
- Throws:
Exception
-
testAppend
- Throws:
Exception
-
testScanSize
- Throws:
Exception
-
testScanTime
- Throws:
Exception
-
testScanSizeForSmallScan
- Throws:
Exception
-
testMobMetrics
- Throws:
IOExceptionInterruptedException
-
setMobThreshold
private static org.apache.hadoop.hbase.regionserver.Region setMobThreshold(org.apache.hadoop.hbase.regionserver.Region region, byte[] cfName, long modThreshold) -
testRangeCountMetrics
- Throws:
Exception
-
testAverageRegionSize
- Throws:
Exception
-
testReadBytes
- Throws:
Exception
-
testTableDescriptorHashMetric
- Throws:
Exception
-