Class HbckChore
java.lang.Object
org.apache.hadoop.hbase.ScheduledChore
org.apache.hadoop.hbase.master.hbck.HbckChore
- All Implemented Interfaces:
Runnable
Used to do the hbck checking job at master side.
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private boolean
private static final String
private HbckReport
Saved report from last time this chore ran.private static final org.slf4j.Logger
private final MasterServices
private boolean
When running, the "snapshot" may be changed when this round's checking finish. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
chore()
The task to execute on each scheduled execution of the Choreprivate void
Returns Returns last published Report that comes of last successful execution of this chore.boolean
boolean
When running, the HBCK report may be changed later.private void
loadRegionsFromFS
(HashSet<String> mergedParentRegions, HbckReport report) private void
private void
loadRegionsFromRSReport
(HbckReport report) boolean
runChore()
Request execution of this chore's action.Scan hbase:meta to get set of merged parent regions, this is a very heavy scan.private void
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
-
HBCK_CHORE_INTERVAL
- See Also:
-
DEFAULT_HBCK_CHORE_INTERVAL
- See Also:
-
master
-
lastReport
Saved report from last time this chore ran. Check its date. -
running
When running, the "snapshot" may be changed when this round's checking finish. -
disabled
-
-
Constructor Details
-
HbckChore
-
-
Method Details
-
getLastReport
Returns Returns last published Report that comes of last successful execution of this chore. -
chore
Description copied from class:ScheduledChore
The task to execute on each scheduled execution of the Chore- Specified by:
chore
in classScheduledChore
-
runChore
Request execution of this chore's action.- Returns:
true
if the chore was executed,false
if the chore is disabled or already running.
-
disableChore
-
isDisabled
-
scanForMergedParentRegions
Scan hbase:meta to get set of merged parent regions, this is a very heavy scan.- Returns:
- Return generated
HashSet
- Throws:
IOException
-
loadRegionsFromInMemoryState
-
loadRegionsFromRSReport
-
loadRegionsFromFS
private void loadRegionsFromFS(HashSet<String> mergedParentRegions, HbckReport report) throws IOException - Throws:
IOException
-
updateAssignmentManagerMetrics
-
isRunning
When running, the HBCK report may be changed later.
-