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
FieldsModifier and TypeFieldDescriptionprivate static final intprivate booleanprivate static final Stringprivate HbckReportSaved report from last time this chore ran.private static final org.slf4j.Loggerprivate final MasterServicesprivate booleanWhen running, the "snapshot" may be changed when this round's checking finish. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidchore()The task to execute on each scheduled execution of the Choreprivate voidReturns Returns last published Report that comes of last successful execution of this chore.booleanbooleanWhen running, the HBCK report may be changed later.private voidloadRegionsFromFS(HashSet<String> mergedParentRegions, HbckReport report) private voidprivate voidloadRegionsFromRSReport(HbckReport report) booleanrunChore()Request execution of this chore's action.Scan hbase:meta to get set of merged parent regions, this is a very heavy scan.private voidMethods 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:ScheduledChoreThe task to execute on each scheduled execution of the Chore- Specified by:
chorein classScheduledChore
-
runChore
Request execution of this chore's action.- Returns:
trueif the chore was executed,falseif 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.
-