Package org.apache.hadoop.hbase.master
Class TestMasterSwitchMetrics
java.lang.Object
org.apache.hadoop.hbase.master.TestMasterSwitchMetrics
@Tag("org.apache.hadoop.hbase.testclassification.MasterTests") @Tag("org.apache.hadoop.hbase.testclassification.SmallTests")
public class TestMasterSwitchMetrics
extends Object
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.apache.hadoop.conf.Configurationprivate org.apache.hadoop.hbase.master.HMasterprivate static final MetricsAssertHelperprivate org.apache.hadoop.hbase.quotas.RpcThrottleStateStoreprivate org.apache.hadoop.hbase.master.MetricsMasterSourceImplprivate org.apache.hadoop.hbase.master.MetricsMasterWrapperImpl -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetUp()voidtearDown()voidvoidvoidvoidvoidtestRpcThrottleUnaffectedByConfigurationReload(boolean quotaEnabled, Path tempDir) private static voidwriteQuotaConfiguration(Path path, boolean quotaEnabled)
-
Field Details
-
METRICS_HELPER
-
master
-
conf
-
rpcThrottleStateStore
-
wrapper
-
source
-
-
Constructor Details
-
TestMasterSwitchMetrics
public TestMasterSwitchMetrics()
-
-
Method Details
-
setUp
- Throws:
IOException
-
tearDown
-
testEachSwitchChangesItsGauge
-
testOnlyActiveInitializedMasterExposesSwitches
-
testRpcThrottleOmittedUntilQuotaManagerReady
-
testRpcThrottleDisabledWithoutQuotaSupport
-
testRpcThrottleUnaffectedByConfigurationReload
@ParameterizedTest @ValueSource(booleans={false,true}) public void testRpcThrottleUnaffectedByConfigurationReload(boolean quotaEnabled, @TempDir Path tempDir) throws IOException - Throws:
IOException
-
writeQuotaConfiguration
- Throws:
IOException
-