Class TestRegionNormalizerManagerConfigurationObserver
java.lang.Object
org.apache.hadoop.hbase.master.normalizer.TestRegionNormalizerManagerConfigurationObserver
Test that configuration changes are propagated to all children.
-
Field Summary
Modifier and TypeFieldDescriptionprivate org.apache.hadoop.hbase.master.normalizer.RegionNormalizerChore
static final HBaseClassTestRule
private org.apache.hadoop.conf.Configuration
private org.apache.hadoop.hbase.conf.ConfigurationManager
private org.apache.hadoop.hbase.master.MasterServices
private org.apache.hadoop.hbase.master.normalizer.SimpleRegionNormalizer
private org.apache.hadoop.hbase.master.normalizer.RegionNormalizerWorkQueue<org.apache.hadoop.hbase.TableName>
private static final Pattern
private org.apache.hadoop.hbase.master.normalizer.RegionNormalizerStateStore
private static final HBaseTestingUtility
private org.apache.hadoop.hbase.master.normalizer.RegionNormalizerWorker
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
before()
private static long
parseConfiguredRateLimit
(org.apache.hbase.thirdparty.com.google.common.util.concurrent.RateLimiter rateLimiter) TheRateLimiter
class does not publicly expose its currently configured rate.void
test()
-
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) TheRateLimiter
class 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()
.
-