Class StorefileRefresherChore
java.lang.Object
org.apache.hadoop.hbase.ScheduledChore
org.apache.hadoop.hbase.regionserver.StorefileRefresherChore
- All Implemented Interfaces:
Runnable
A chore for refreshing the store files for secondary regions hosted in the region server. This
chore should run periodically with a shorter interval than HFile TTL
("hbase.master.hfilecleaner.ttl", default 5 minutes). It ensures that if we cannot refresh files
longer than that amount, the region will stop serving read requests because the referenced files
might have been deleted (by the primary region).
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final intprivate longprivate static final org.slf4j.Loggerprivate booleanprivate intprivate HRegionServerstatic final StringWhether all storefiles should be refreshed, as opposed to just hbase:meta's Meta region doesn't have WAL replication for replicas enabled yetstatic final StringThe period (in milliseconds) for refreshing the store files for the secondary regions. -
Constructor Summary
ConstructorsConstructorDescriptionStorefileRefresherChore(int period, boolean onlyMetaRefresh, HRegionServer regionServer, Stoppable stoppable) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidchore()The task to execute on each scheduled execution of the Choreprotected booleanisRegionStale(String encodedName, long time) 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
-
REGIONSERVER_STOREFILE_REFRESH_PERIOD
The period (in milliseconds) for refreshing the store files for the secondary regions.- See Also:
-
DEFAULT_REGIONSERVER_STOREFILE_REFRESH_PERIOD
- See Also:
-
REGIONSERVER_META_STOREFILE_REFRESH_PERIOD
Whether all storefiles should be refreshed, as opposed to just hbase:meta's Meta region doesn't have WAL replication for replicas enabled yet- See Also:
-
regionServer
-
hfileTtl
-
period
-
onlyMetaRefresh
-
lastRefreshTimes
-
-
Constructor Details
-
StorefileRefresherChore
public StorefileRefresherChore(int period, boolean onlyMetaRefresh, HRegionServer regionServer, Stoppable stoppable)
-
-
Method Details
-
chore
Description copied from class:ScheduledChoreThe task to execute on each scheduled execution of the Chore- Specified by:
chorein classScheduledChore
-
isRegionStale
-