Class RollingUpgradeChore
java.lang.Object
org.apache.hadoop.hbase.ScheduledChore
org.apache.hadoop.hbase.master.migrate.RollingUpgradeChore
- All Implemented Interfaces:
Runnable
To avoid too many migrating/upgrade threads to be submitted at the time during master
initialization, RollingUpgradeChore handles all rolling-upgrade tasks.
-
Field Summary
Modifier and TypeFieldDescription(package private) static final int
(package private) static final long
(package private) static final int
private static final org.slf4j.Logger
(package private) ProcedureExecutor<MasterProcedureEnv>
private List<InitializeStoreFileTrackerProcedure>
(package private) static final String
(package private) static final String
private TableDescriptors
-
Constructor Summary
ModifierConstructorDescriptionprivate
RollingUpgradeChore
(org.apache.hadoop.conf.Configuration conf, ProcedureExecutor<MasterProcedureEnv> procedureExecutor, TableDescriptors tableDescriptors, Stoppable stopper) RollingUpgradeChore
(MasterServices masterServices) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
chore()
The task to execute on each scheduled execution of the Choreprivate boolean
isCompletelyMigrateSFT
(int concurrentCount) 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
-
ROLLING_UPGRADE_CHORE_PERIOD_SECONDS_KEY
- See Also:
-
DFAULT_ROLLING_UPGRADE_CHORE_PERIOD_SECONDS
- See Also:
-
ROLLING_UPGRADE_CHORE_DELAY_SECONDS_KEY
- See Also:
-
DEFAULT_ROLLING_UPGRADE_CHORE_DELAY_SECONDS
- See Also:
-
CONCURRENT_PROCEDURES_COUNT
- See Also:
-
LOG
-
procedureExecutor
-
tableDescriptors
-
processingProcs
-
-
Constructor Details
-
RollingUpgradeChore
-
RollingUpgradeChore
private RollingUpgradeChore(org.apache.hadoop.conf.Configuration conf, ProcedureExecutor<MasterProcedureEnv> procedureExecutor, TableDescriptors tableDescriptors, Stoppable stopper)
-
-
Method Details
-
chore
Description copied from class:ScheduledChore
The task to execute on each scheduled execution of the Chore- Specified by:
chore
in classScheduledChore
-
isCompletelyMigrateSFT
-