Package org.apache.hadoop.hbase.master
Class RegionsRecoveryChore
java.lang.Object
org.apache.hadoop.hbase.ScheduledChore
org.apache.hadoop.hbase.master.RegionsRecoveryChore
- All Implemented Interfaces:
Runnable
This chore, every time it runs, will try to recover regions with high store ref count by
reopening them
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final String
private final HMaster
private static final org.slf4j.Logger
private static final PerClientRandomNonceGenerator
private static final String
private final int
-
Constructor Summary
ConstructorDescriptionRegionsRecoveryChore
(Stoppable stopper, org.apache.hadoop.conf.Configuration configuration, HMaster hMaster) Construct RegionsRecoveryChore with provided params -
Method Summary
Modifier and TypeMethodDescriptionprotected void
chore()
The task to execute on each scheduled execution of the ChoregetTableToRegionsByRefCount
(Map<ServerName, ServerMetrics> serverMetricsMap) private void
prepareTableToReopenRegionsMap
(Map<TableName, List<byte[]>> tableToReopenRegionsMap, byte[] regionName, int regionStoreRefCount) Methods inherited from class org.apache.hadoop.hbase.ScheduledChore
cancel, cancel, choreForTesting, cleanup, getInitialDelay, getName, getPeriod, getStopper, getTimeUnit, initialChore, isInitialChoreComplete, isScheduled, run, shutdown, shutdown, toString, triggerNow
-
Field Details
-
LOG
-
REGIONS_RECOVERY_CHORE_NAME
- See Also:
-
ERROR_REOPEN_REIONS_MSG
- See Also:
-
hMaster
-
storeFileRefCountThreshold
-
NONCE_GENERATOR
-
-
Constructor Details
-
RegionsRecoveryChore
RegionsRecoveryChore(Stoppable stopper, org.apache.hadoop.conf.Configuration configuration, HMaster hMaster) Construct RegionsRecoveryChore with provided params- Parameters:
stopper
- WhenStoppable.isStopped()
is true, this chore will cancel and cleanupconfiguration
- The configuration params to be usedhMaster
- HMaster instance to initiate RegionTableRegions
-
-
Method Details
-
chore
Description copied from class:ScheduledChore
The task to execute on each scheduled execution of the Chore- Specified by:
chore
in classScheduledChore
-
getTableToRegionsByRefCount
private Map<TableName,List<byte[]>> getTableToRegionsByRefCount(Map<ServerName, ServerMetrics> serverMetricsMap) -
prepareTableToReopenRegionsMap
private void prepareTableToReopenRegionsMap(Map<TableName, List<byte[]>> tableToReopenRegionsMap, byte[] regionName, int regionStoreRefCount)
-