Class TestRegionNormalizerManagerConfigurationObserver
java.lang.Object
org.apache.hadoop.hbase.master.normalizer.TestRegionNormalizerManagerConfigurationObserver
Test that configuration changes are propagated to all children.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.apache.hadoop.hbase.master.normalizer.RegionNormalizerChorestatic final HBaseClassTestRuleprivate org.apache.hadoop.conf.Configurationprivate org.apache.hadoop.hbase.conf.ConfigurationManagerprivate org.apache.hadoop.hbase.master.MasterServicesprivate org.apache.hadoop.hbase.master.normalizer.SimpleRegionNormalizerprivate org.apache.hadoop.hbase.master.normalizer.RegionNormalizerWorkQueue<org.apache.hadoop.hbase.TableName>private static final Patternprivate org.apache.hadoop.hbase.master.normalizer.RegionNormalizerStateStoreprivate static final HBaseTestingUtilityprivate org.apache.hadoop.hbase.master.normalizer.RegionNormalizerWorker -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbefore()private static longparseConfiguredRateLimit(org.apache.hbase.thirdparty.com.google.common.util.concurrent.RateLimiter rateLimiter) TheRateLimiterclass does not publicly expose its currently configured rate.voidtest()
-
Field Details
-
CLASS_RULE
-
testUtil
-
rateLimitPattern
-
conf
-
normalizer
-
masterServices
-
stateStore
-
chore
-
queue
@Mock private org.apache.hadoop.hbase.master.normalizer.RegionNormalizerWorkQueue<org.apache.hadoop.hbase.TableName> queue -
worker
-
configurationManager
-
-
Constructor Details
-
TestRegionNormalizerManagerConfigurationObserver
-
-
Method Details
-
before
-
test
-
parseConfiguredRateLimit
private static long parseConfiguredRateLimit(org.apache.hbase.thirdparty.com.google.common.util.concurrent.RateLimiter rateLimiter) TheRateLimiterclass does not publicly expose its currently configured rate. It does offer this information in theRateLimiter.toString()method. It's fragile, but parse this value. The alternative would be to track the value explicitly in the worker, and the associated coordination overhead paid at runtime. See the related note onRegionNormalizerWorker.getRateLimiter().
-