Class TestMetricsThrottleExceptions
java.lang.Object
org.apache.hadoop.hbase.regionserver.metrics.TestMetricsThrottleExceptions
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate org.apache.hadoop.hbase.metrics.MetricRegistryprivate org.apache.hadoop.hbase.regionserver.metrics.MetricsThrottleExceptions -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup()private org.apache.hadoop.hbase.metrics.MetricRegistryInfoHelper method to create the expected MetricRegistryInfo for ThrottleExceptionsprivate voidHelper method to set up test metrics registry and instancevoidvoidvoidvoidvoidvoidvoidvoidvoidprivate voidverifyCounter(org.apache.hadoop.hbase.metrics.MetricRegistry registry, String metricName, long expectedCount) Helper method to verify a counter exists and has the expected value
-
Field Details
-
CLASS_RULE
-
testRegistry
-
throttleMetrics
-
-
Constructor Details
-
TestMetricsThrottleExceptions
public TestMetricsThrottleExceptions()
-
-
Method Details
-
cleanup
-
testBasicThrottleMetricsRecording
-
testMultipleThrottleTypes
-
testCounterIncrement
-
testMetricNameSanitization
-
testNullHandling
-
testConcurrentAccess
- Throws:
InterruptedException
-
testCommonTableNamePatterns
-
testAllThrottleExceptionTypes
-
testMultipleInstances
-
setupTestMetrics
Helper method to set up test metrics registry and instance -
verifyCounter
private void verifyCounter(org.apache.hadoop.hbase.metrics.MetricRegistry registry, String metricName, long expectedCount) Helper method to verify a counter exists and has the expected value -
getRegistryInfo
Helper method to create the expected MetricRegistryInfo for ThrottleExceptions
-