Class TestMetricsThrottleExceptions
java.lang.Object
org.apache.hadoop.hbase.regionserver.metrics.TestMetricsThrottleExceptions
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private org.apache.hadoop.hbase.metrics.MetricRegistry
private org.apache.hadoop.hbase.regionserver.metrics.MetricsThrottleExceptions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
cleanup()
private org.apache.hadoop.hbase.metrics.MetricRegistryInfo
Helper method to create the expected MetricRegistryInfo for ThrottleExceptionsprivate void
Helper method to set up test metrics registry and instancevoid
void
void
void
void
void
void
void
void
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
-
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
-